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

Re: omega question



PureBytes Links

Trading Reference Links

At 3:42 PM -0400 6/25/98, Tullman, Mitch wrote:
>
>Does anyone know how to single out a specific bar during the day so you can
>keep referencing back to it.??
>
>For example....if the last bar was an inside bar, how would I buy a
>breakout of the previous wide range bar as the day goes bye??
>


You could save the bar number at the bar where the condition occurs. Then
keep referring back to that bar number:


Vars: SaveBar(0);

{Save bar number of the bar you want}
If <condition> then SaveBar = CurrentBar;


{Refer to that bar}
Value1 = Range[CurrentBar - SaveBar];