Optuma Forums › Optuma Scripting › bearish tweezer top › Reply To: bearish tweezer top
May 12, 2022 at 8:01 am
#68230
- Topics: 5
- Replies: 608
- Posts: 613
Hi,
You may need to tweak some of the settings of the within range % however the following should work:
1 2 3 4 5 6 7 8 9 10 |
//Find Bullish Candle V1 = CLOSE() > OPEN() ; //Find Bearish Candle V2 = CLOSE() < OPEN() ; //Find where High of current candle is within 0.5% range of the previous candles high V3 = WITHINRANGE(High(), High(1), PERCENT=0.50) ; //Previous Candle was Bullish, Current Candle is Bearish, and High of current candle is within 0.5% range of the previous candles high V1[1] == 1 and V2 and V3 |