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.

nsvv

Members
  • Content Count

    6
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    guadalajara
  • Country
    Mexico
  • Gender
    Male

Trading Information

  • Vendor
    No
  1. ,.. and to should be downto and i should be value1. now it is making trades but not same ones as the original one..
  2. did notice one mistake it should be for value1=14 to 0 begin not the other way around but it is still not making any trades..
  3. it is even easier than that, just use the built in average_a function. I tried making a XAverage_a function but there is probably something wrong in it since no trades are generated. If anyone can find the fault, I would be grateful. inputs: PriceValue[M](numericArrayRef), Len( numericsimple ) ; variables: factor( 2 / ( Len + 1 ) ) ; XAverage_A = PriceValue[M]; for value1 = M-1 to 0 begin XAverage_A = XAverage_A + factor * ( PriceValue[value1] - XAverage_A ) ; end;
  4. it is just a regular static array I collect closing prices to it like this: if hour>hour[1] then begin for value1=0 to 14 begin htfClose[i+1]=htfClose; end; htfClose[0]=Close; end;
  5. Yes, as long as the data is in DataSeries form it works of course. Now, how do I convert an array to a DataSeries so that I can use xaverage? Or maybe making my own version of the Xaverage function so that it accepts arrays instead of Dataseries is the only solution? This wouldnt be as good since I would probably have to rewrite other indicators to accept arrays too. I tried the easier sounding solution of adding the same instrument in different higher time frame and using Data2 to access it but signals dont match at all. Does multicharts expand the higher time frame to match the lower one?
  6. I am trying to write a multitimeframe system in Easylanguage. I basically have a higher timeframe system that works but would like to add some lower time frame logic to it to make it better. I have created arrays for the higher time frame o h l and c. When I try to use xaverage on those arrays, Multicharts complains of incorrect argument type. I assume this is because the Xaverage requires NumericSeries as input and not an array. How do I get around this?
×
×
  • Create New...

Important Information

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