Registered User Joined: 12/27/2010 Posts: 30
|
Is there a way to write a condition to convert OHLC values of previous bar into a Heiken Ashi bar?
What I am trying to do is identify the first bar in an uptrend that does not have a lower wick
coming out of a transition phase.It is easily identified on a HA chart but can that be converted to a PDF
condition to be placed in a watch list?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
A condition formula for an HA candle with no lower wick can be written as follows.
4 * L >= XAVG(O1 + H1 + L1 + C1, 3)
And a condition formula far an HA candlie with a lower wick can be written as follows
4 * L < XAVG(O1 + H1 + L1 + C1, 3)
So if you want to check if the current candle is the first one without a lower wick in v18:
TrueInRow(4 * L >= XAVG(O1 + H1 + L1 + C1, 3), 2) = 1
And in earlier versions:
4 * L >= XAVG(O1 + H1 + L1 + C1, 3) AND 4 * L1 < XAVG(O2 + H2 + L2 + C2, 3)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|