ActiveTrader 2010-09 | Parabolic Alternatives 2
Author: Eugene
Creation Date: 8/9/2010 2:03 AM
profile picture

Eugene

#1
Code for ActiveTrader 2010-09 | Parabolic Alternatives 2 strategy published.

We recommend downloading it directly using the convenient "Strategy Download" feature (found in Wealth-Lab's "Open Strategy" dialog).
profile picture

Yury

#2
Eugene, hello!
In your code, entering a position in the cycle at step bar (eg, bar = 100) is carried out at the bar+1=101 and the values of p.LowestLowAsOfBar or p.HighestHighAsOfBar are determined only from the bar=101. Then on the next iteration of the loop bar = 101 in the determination of the stop values p.LowestLowAsOfBar(bar-1)=p.LowestLowAsOfBar(100) or p.HighestHighAsOfBar(bar-1)=p.HighestHighAsOfBar(100) are not defined (p.LowestLowAsOfBar(bar-1)=1.79E+308 and p.HighestHighAsOfBar(bar-1)=-1.79E+308) and the values ??of the stop on the chart does not appear. They only appear on the next bar. I think when we are determining the stop (stop = p.LowestLowAsOfBar( bar-1 ) + atr[bar] * DistShort; or stop = p.HighestHighAsOfBar( bar-1 ) - atr[bar] * DistLong;) bar-1 must be replaced by a bar. Then all will be well.
Regards, Yury
profile picture

Eugene

#3
Hi Yury,
I think what you're proposing makes sense. Thanks.
profile picture

Eugene

#4
Strategy has been updated.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).