PureBytes Links
Trading Reference Links
|
Consider using the MRO function (Most Recent Occurrence) which will lock
your condition to a X bars ago, where X unpdates with each passing bar.
Logic thus:
value1=MRO of condition
if high < high of value1 {i.e. we haven't yet broken out since the condition
occurred} then buy next bar + 1 tick
Forgot one thing!:
The above will keep triggering when price HAS broken out but then falls back
lower again, and presumably you don't want to know about this?! Hence you'd
need to have the highest high of X bars, to be less than or equal to the
high at X bars ago. Thus:
value1=MRO of condition;
if high < high of value1 AND highest(h,value1)<= high of value 1 then
buy next bar high + 1 tick;
Rgds
Simon.
At 15:25 12/10/99 -0400, you wrote:
>Hi,
>I was wondering if some one could shed some light on a "buy Stop"?
>
>I have the following;
>
>If (AO[1]<0) and (AO>0) then
>buy ("AO_X+) at high + 1 Stop.
>
>The problem is that it only gives me a signal if the next bar is at a high
>+1. I would like to tell me to buy if 2 or 3 bars from that condition is at
>high +1.
>What am I doing wrong?
>
>PS. All this "Omega man" and "complaining stuff" should finally stop.
>
>Thanks
>Joe
>
>
|