PureBytes Links
Trading Reference Links
|
Tomasz and anyone:
I have a question about the plot function in Indicator Builder. In my
system formula, if I have assigned a label to an array (like
InitialStop=ValueWhen(Buy,L-3*ATR(10));) and then try to plot it in
Indicator Builder, using the code Plot(InitialStop,"",6,1);, I get a
line that changes levels as new buy signals are given (despite using
the ExRem statement to eliminate excessive buy signals). However, if
I use the following plot statement, Plot(ValueWhen(Buy,L-3*ATR
(10)),"",6,1);, I should get the exact same line, since both codes
are identical (one uses the assigned array, the other uses the
formula for the array). However, what happens when I code the latter,
I get a constant horizontal line that is not sensitive to excessive
buy signals, which is the behavior I want. What's going on? What
should one use in the plot statement, an assigned array or the
formula for an array and why is there a difference?
The above question relates to behavior I have seen occur in a
backtest. Backtesting gives results whose behavior fits a stop that
changes in response to excessive buy signals. This should not happen
because the stop is fixed by the ValueWhen statement, and the ExRem
statement should prevent the effect of excessive buy signals. I have
tested lots of systems like this, and they all give the same type of
anomaly. The big question is, how do you prevent excessive buy
signals from wielding their effect on performance of the system?
Thanks for any insights anyone can give on this problem.
Al V.
|