|
Re: The Chimp`s new "Futures Scalps"
Hi
My strategy was looking for a cross between ADXVMA(2) and ADXVMA(5)
What the strategy plotted on the screen looked more like I used ADXVMA(6 and ???)...
The problem was the indicator initialized it's Parameters, such as ADXPeriod, MA Period etc the "Initialize" section of the Indicator.
That section is only run once by NT and is used to setup plots in memory etc.
Initializing parms here doesn't seem to cause a problem when you are only using the indicator on a chart. But it does seem to affect how parms are passed to the indicator when used with a strategy
So .. the result was that it ignored or mistook any parameters that I used.
Moving the 4 lines below into the 'OnBarUpdate' section fixed the problem
WeightDX = ADXPeriod;
WeightDM = ADXPeriod;
WeightDI = ADXPeriod;
ChandeEMA = ADXPeriod;
Again, Thanks to Sparrow for porting this indicator and Josh for fixing it. I'm just the happy user !
|