Optuma Forums › Optuma General Discussion › Twitter Charts 2 › Reply To: Twitter Charts 2
January 25, 2022 at 11:03 pm
#67357
- Topics: 70
- Replies: 802
- Posts: 872
Breakout scan: https://twitter.com/Optuma/status/1482727843171868672?t=JzBy3BTgpMf_3_i2Z3lAzw&s=19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
//Define pivots; #$Bars=10; H1=PIVOT(MIN=$Bars, TYPE=High, IGNOREUNCONFIRMED=True); L1=PIVOT(MIN=$Bars, TYPE=Low, IGNOREUNCONFIRMED=True); //Get pivot values; H2=VALUEWHEN(HIGH(), H1); L2=VALUEWHEN(LOW(),L1); //When did the pivots occur?; $TH1=TIMESINCESIGNAL(H1, UNIT=Bars); $TL1=TIMESINCESIGNAL(L1, UNIT=Bars); //Close crosses previous pivot level with a new high/low since the pivot; (CLOSE() CrossesAbove H2 and CLOSE() > HIGHESTHIGH(BARS=$TL1)) or (CLOSE() CrossesBelow L2 and CLOSE() < LOWESTLOW(BARS=$TL1)) |