Registered User Joined: 8/3/2014 Posts: 8
|
I found the following PCF to scan the first hollow or green candle using Heikin ashi candle
(((O + H + L + C) / 4 - (XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1) / 4) > 0.0 ) AND (((O1 + H1 + L1 + C1) / 4 - (XAVGO4.2 + XAVGH4.2 + XAVGL4.2 + XAVGC4.2) / 4) < 0.0 )
what would be the inverse of this PCF? I need the one that scans for the first filled or red candle.
thank you.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following Condition Formula (it assumes open vs close is being used for both color and fill).
O + H + L + C < XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1 AND O1 + H1 + L1 + C1 > XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2
On another note, the 4.2s in the second section of the formula as provide should be 3.2s instead.
O + H + L + C > XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1 AND O1 + H1 + L1 + C1 < XAVGO3.2 + XAVGH3.2 + XAVGL3.2 + XAVGC3.2
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 8/3/2014 Posts: 8
|
thank you!!
|
Registered User Joined: 8/3/2014 Posts: 8
|
Hi Bruce, what would be the PCF to scan for just hollow candles and for just filled candles?? no matter if they're the first or 2nd or 3rd etc. candle in a row.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
What are the Color Based On and Fill Based On settings of your Heiken-Ashi candles when you edit price?
The close of the current bar is:
(O + H + L + C) / 4
And the open of the current bar is:
(XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1) / 4)
So if you are just looking at the current bar, the close being above the open would be (hollow or green):
O + H + L + C > XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1
And the close being below the open would be (filled or red):
O + H + L + C < XAVGO3.1 + XAVGH3.1 + XAVGL3.1 + XAVGC3.1
-Bruce Personal Criteria Formulas TC2000 Support Articles
|