[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MRO?



PureBytes Links

Trading Reference Links

Dave

I’m not sure what you want so maybe the following will not fit your
needs.

To hold open a fixed number of bars during which an indicator may
trigger can be done with the MRO function.

If MRO(showme, 4, 1) > -1  then begin

	if ave1 > ave2 then buy....

End;

The MRO, when triggered as true by the showme on bar x, will read -1, 0,
1, 2, 3, -1 on bar x-1, x, x+1, x+2, x+3, x+4. This allows the code to
pass through the "If MRO...then begin" from bar x to x+3. The next
"if...then" is then tested on each of these 4 bars.

If you want to wait for 2 bars after the showme was true, before testing
the buy condition and test it for 4 more bars then use:

If MRO(showme,6,1) > 1 then begin


Wayne Mathews

> 
>    you wrote Thu, 18 Feb 99 17:47:15 PST
> 
> I've plotted a showme using 9 -10 different criteria (l=lowest(l,13);
> SlowK(8)>SlowK(8)[2] etc. etc).
> 
> I am now trying to incorporate this into a system.
> Is it possible, using Supercharts, to enter a trade using a moving
> average crossover (for example) as a trigger, but only " if " the
> showme was plotted within say, the last  4 days.
> 
> I've tried MRO and then numerous other things with no success.