Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

mengelbrecht

Members
  • Content Count

    3
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Gilleleje
  • Country
    Denmark
  • Gender
    Male

Trading Information

  • Vendor
    No
  1. Hi Ranger I actually posted my reply earlier. I don't know why it didn't show up ?? I am Using MC 6.1. I have jtHMA both as a function and an indicator. Below is the code for the jtHMA.function. I assume it is the same function that is used in TS rgds mengelbrecht {jtHMA - Hull Moving Average Function} {Author: Atavachron} {May 2005} Inputs: price(NumericSeries), length(NumericSimple); Vars: halvedLength(0), sqrRootLength(0); if ((ceiling(length / 2) - (length / 2)) <= 0.5) then halvedLength = ceiling(length / 2) else halvedLength = floor(length / 2); if ((ceiling(SquareRoot(length)) - SquareRoot(length)) <= 0.5) then sqrRootLength = ceiling(SquareRoot(length)) else sqrRootLength = floor(SquareRoot(length)); Value1 = 2 * WAverage(price, halvedLength); Value2 = WAverage(price, length); Value3 = WAverage((Value1 - Value2), sqrRootLength); jtHMA = Value3;
  2. Hi ranger I am using MC 6.1 As for jtHMA i have it both as a function and an indicator. Below is code for the jtHMA function. I assume it is the same in TS. {jtHMA - Hull Moving Average Function} Inputs: price(NumericSeries), length(NumericSimple); Vars: halvedLength(0), sqrRootLength(0); if ((ceiling(length / 2) - (length / 2)) <= 0.5) then halvedLength = ceiling(length / 2) else halvedLength = floor(length / 2); if ((ceiling(SquareRoot(length)) - SquareRoot(length)) <= 0.5) then sqrRootLength = ceiling(SquareRoot(length)) else sqrRootLength = floor(SquareRoot(length)); Value1 = 2 * WAverage(price, halvedLength); Value2 = WAverage(price, length); Value3 = WAverage((Value1 - Value2), sqrRootLength); jtHMA = Value3; I hope this helps rgds mengelbrecht
  3. Hi I followed your instructions and wanted to try out your system When I compile your strategy i get an error when I get to this place in the strategy //////START CALCULATION FOR SCALED HAAR _HWT = (HaarWT(jtHMA(Close,3),4,2,FALSE)/10); _HWT3 = (HaarWT(jtHMA(Close,3),4,3,FALSE)/10); I get this error: ------ Compiled with error(s): ------ Invalid number of parameters. 0 parameter(s) expected errLine 136, errColumn 10, errLineEnd 136, errColumnEnd 10 causal study: (Function) All the functions is imported and compiled without any errors pls advice rgds mengelbrecht
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.