Las Vegas, Nevada
Experience: Intermediate
Platform: TOS, NinjaTrader
Trading: Stocks, Futuers, Options
Posts: 18 since Apr 2014
Thanks Given: 0
Thanks Received: 0
|
Need some help with an IF, WHEN, THEN statement...
If LINE crosses above 0 and (When) LINE > 1 then 0 else Double.Nan;
...so that when the histogram crosses above 0, an arrow plots but not UNTIL the histogram is greater than 1. It may be the second or third histogram bar
I've done the below but what is happening is if the first plot of the histogram is not > 1, then no arrow plots even if the next bar is >1. An arrow only plots if THE FIRST bar is greater than 1
= if Line crosses above 0 and Line > 1 then 0 else Double.NaN ;
I've tried
if LINE > 1 then 0 else Double.NAN;
but that plots arrows on ALL bars >1. I just want the first bar >1 to have an arrow regardless of how many after are > 1.
Is that even possible?
|