PureBytes Links
Trading Reference Links
|
Randy
> I am writing a system tester for an idea I had.
> My problem is: I am trying to exit on the fourth day after I enter long.
> On the exit page: I type: BarsSince(Long)==4;
> This will not work. Any ideas?
Try this for a delay timed from the trailing edge of the entry signal. This will function as an
indicator provided the entry is also coded as an indicator. To use directly in the System Tester you
would need to either still have the entry coded as an indicator or include all the entry code as
Signal:=XXXX.
If using the MS System Tester why not use identical code for entry and exit, and use the tester
delay facility for Close Long
{Timed Exit} {from trailing edge}
Delay:=Input("Exit delay periods",1,50,4);
Signal:=Fml("Long Entry");
Pause:=Alert(Signal,Delay);
Pause=0 AND Alert(Pause,2);
and this for a delay timed from the leading edge of the entry signal.
{Timed Exit} {from leading edge}
Delay:=Input("Exit delay periods",1,50,4);
Signal:=Fml("Long Entry");
Edge:=Signal AND Alert(Signal=0,2);
Pause:=Alert(Edge,Delay);
Pause=0 AND Alert(Pause,2);
Roy
PS: I have deliberately used the Alert() function rather than the Ref() function so as not to extend
the indicator undefined period. However you need to be aware that the Alert() function can only be
used directly with binary data (0 or 1).
|