Gold Customer
Joined: 7/13/2007 Posts: 28
|
Could You Please supply a formula that would show 3 consecutive days of Heiken Ashi red bars followed by a green bar and also the reverse of 3 consecutive green bars followed by a red bar.
Thanks,
Investit
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (investit) Could You Please supply a formula that would show 3 consecutive days of Heiken Ashi red bars followed by a green bar...
If Color Based On is set to Open vs Close:
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 AND O2 + H2 + L2 + C2 < XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3 AND O3 + H3 + L3 + C3 < XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4
If Color Based On is set to Net Change:
O + H + L + C >= O1 + H1 + L1 + C1 AND O1 + H1 + L1 + C1 < O2 + H2 + L2 + C2 AND O2 + H2 + L2 + C2 < O3 + H3 + L3 + C3 AND O3 + H3 + L3 + C3 < O4 + H4 + L4 + C4
QUOTE (investit) ...and also the reverse of 3 consecutive green bars followed by a red bar.
If Color Based On is set to Open vs Close:
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 AND O2 + H2 + L2 + C2 >= XAVGO3.3 + XAVGH3.3 + XAVGL3.3 + XAVGC3.3 AND O3 + H3 + L3 + C3 >= XAVGO3.4 + XAVGH3.4 + XAVGL3.4 + XAVGC3.4
If Color Based On is set to Net Change:
O + H + L + C < O1 + H1 + L1 + C1 AND O1 + H1 + L1 + C1 >= O2 + H2 + L2 + C2 AND O2 + H2 + L2 + C2 >= O3 + H3 + L3 + C3 AND O3 + H3 + L3 + C3 >= O4 + H4 + L4 + C4
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|