Optuma Forums › Optuma Scripting › Show Bar Help › Reply To: Show Bar Help
November 15, 2021 at 1:40 pm
#66623
- Topics: 33
- Replies: 55
- Posts: 88
Hi. Here is the script for StochClose 125 5. The Show View looks like it understands but is off by 1 bar. Please see attached screenshot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
//Define Variables for Stochastic Calculation V1 = CLOSE() ; V2 = HIGHESTHIGH(BARS=125, INCBAR=True, Close()) ; V3 = LOWESTLOW(BARS=125, INCBAR=True, Close()) ; //Stochastic Cal caution V4 = ((V1 - V3) / (V2 - V3)) * 100 ; //Smooth the Stochastic Calculation V5 = MA(CALC=Close, V4) ; //Format the Stochastic And Add 2 Lines Plot1 = V5 ; Plot1.Color = Black ; Plot1.LineWidth = 2 ; Plot2 = 60 ; Plot2.Color = Green ; Plot3 = 40 ; Plot3.Color = Red; |
-
This reply was modified 6 months ago by
Louis Spector.