people with nt,
i have been having a torrid time with horizontal lines.
i'm working with the previous day's low, high and some arithmetic operations on those values.
i want to have those values both inside a strategy as conditions to trigger trades and also visually in a separate indicator. i always do that, evaluate strategies and for the most attractive create indicators that replicate their signals.
i tried to modify the keltner channel indicator to plot the lines i'm interested in, but even when i created as many series as required, it seems that the plot command won't work with horizontal lines. the indicator will compile but then it just won't plot anything.
i also tried to work with Draw.Line(this, "previous low"+CurrentBar,false,1,(value),0,(value),Brushe s.Blue,DashStyleHelper.Solid,4); commands but then only the low and the high for the previous day will be plotted, the other values i'm calculating (additions, deductions, multiplications, divisions) will not work.
so, please, ¿what structure should i use so that the previous day's low, high and other values i calculate derived from those will be available in a strategy? ¿doubles, series, anything else? just for illustration, i would like to calculate the previous day's low, high, low minus 50% of the 20 period atr and high plus 50% of the period atr.
and, ¿what structure must an indicator have so that it will plot those same horizontal lines?
ideally, i would want to create an indicator that could then be used inside a strategy but in this particular case it seems like it will be impossible. i have all these studies ready in a crappier ts el platform and things are nowhere near as convoluted and or exasperating as can be the case with nt. i persevere with nt because the backtesting engine is very robust, but nt never makes it easy to work with ninjascript or nt.
Comment