Australian (ASX) Stock Market Forum

Metastock formula Review

Joined
15 September 2022
Posts
14
Reactions
4
Hi Team,

I have written a code myself, but it does not seem to capture some of the moves that I am trying to mark in my chart. I would like to build an indicator when the opening of today is at or below the close of the prior day but manages to close above the prior day's close.

Below is the formula I have written, and could you please review this formula?

O<Ref(C,-2) AND C>Ref(C,-2)

Thanks a lot for your assistance.
 
Hi Team,

I have written a code myself, but it does not seem to capture some of the moves that I am trying to mark in my chart. I would like to build an indicator when the opening of today is at or below the close of the prior day but manages to close above the prior day's close.

Below is the formula I have written, and could you please review this formula?

O<Ref(C,-2) AND C>Ref(C,-2)

Thanks a lot for your assistance.
Hi @dsper123,

Well done with your attempt to solve the code prior to asking for some assistance.

O<=Ref(C,-1) AND C>Ref(C,-1) ;

Cheers, Rob
 
@rnr I am also trying to write another formula to indicate when this happens; L>Ref(H,-2) but I want this indication to disappear if subsequent price action moves between the abovementioned L and H2. I am struggling to write the rest of the formula so the indication no longer applies. I would appreciate it if you could help me with the rest of the formula. Thanks again.
 
Top