hinkognito
New member
Hello all,
Here is a simple script for finding a high or low based on certain criteria. There are two iterations: one with 2 candles and one with 3 candles.
How can I get it to paint on the first candle?
Thanks!
plot ch1 = if close[1]>open[1] and close<open and close<low[1] then high else double.nan;
plot ch2 = if close[2]>open[2] and close[1]<open[1] and close<low[1] then high else double.nan;
plot cl1 = if close[1]<open[1] and close>open and close>low[1] then low else double.nan;
plot cl2 = if close[2]<open[2] and close[1]>open[1] and close>low[1] then low else double.nan;
Here is a simple script for finding a high or low based on certain criteria. There are two iterations: one with 2 candles and one with 3 candles.
How can I get it to paint on the first candle?
Thanks!
plot ch1 = if close[1]>open[1] and close<open and close<low[1] then high else double.nan;
plot ch2 = if close[2]>open[2] and close[1]<open[1] and close<low[1] then high else double.nan;
plot cl1 = if close[1]<open[1] and close>open and close>low[1] then low else double.nan;
plot cl2 = if close[2]<open[2] and close[1]>open[1] and close>low[1] then low else double.nan;