Registered User Joined: 9/27/2010 Posts: 29
|
As you know, TC2000 offers Heiken-Ashi charts. These are very useful for showing persisting trends but use calculated rather than actual prices.
I would like to create an EasyScan that would alert me to incidences in a group of securities where there have been multiple periods where a security has closed the bars of a Heiken-Ashi chart at a lower price than it opened. In other words, base the EasyScan on the derived Heiken-Ashi values rather than the actual values of the period.
Can you help me with this?
Dennis
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following would check for closing below the open.
O + H + L + C < XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1
The following would check for closing below the open at least two bars in a row in TC2000 v17.
TrueInRow(O + H + L + C < XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1, 2) = 2
The following would check for closing below the open at least three bars in a row in TC2000 v17.
TrueInRow(O + H + L + C < XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1, 3) = 3
The following would check for closing below the open exactly three bars in a row in TC2000 v17.
TrueInRow(O + H + L + C < XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1, 4) = 3
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 10/7/2004 Posts: 1,178
|
Bruce, Can you offer a TrueInRow formula for a Heiken-Ashi candle with shadows below and above the body?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
A condition formula to check if it is true for the current bar would be the following.
ABS((XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1) / 2 - H - L) < H - L
A TrueInRow() function which counted the number of bars in a row which maxed out at 10 would be the following.
TrueInRow(ABS((XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1) / 2 - H - L) < H - L, 10)
Checking for at least 2 bars in a row would be the following.
TrueInRow(ABS((XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1) / 2 - H - L) < H - L, 2) = 2
Checking for at least 3 bars in a row would be the following.
TrueInRow(ABS((XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1) / 2 - H - L) < H - L, 3) - 3
-Bruce Personal Criteria Formulas TC2000 Support Articles
|