Optuma Forums › Optuma Scripting › Price Range Script Error › Reply To: Price Range Script Error
March 22, 2022 at 9:59 pm
#67755
- Topics: 70
- Replies: 790
- Posts: 860
Hi Tim,
This will calculate when the percentage difference between the 10 day high and low is less than 10%:
1 2 3 4 5 6 |
H1 = HIGHESTHIGH(RANGE=Look Back Period, BARS=10, INCBAR=True); L1 = LOWESTLOW(RANGE=Look Back Period, BARS=10, INCBAR=True); //Calc % range; 1-(L1/H1) < 0.1 |