I would like to create a new DataSeries equal to the minimum of the two values, the low of the series minus a 14 day ATR or the low of a series minus a 100 day atr
I've created two series
DataSeries atr14 = ATR.Series(Bars, short_atr_pd);
DataSeries atr100 = ATR.Series(Bars, long_atr_pd);
I want to create a new series, call it LB for lower bound
DataSeries LB = new DataSeries(Bars, "Lower Bound");
the following doesn't work
LB = Math.Min (Bars.Low - 0.5 * atr14, Bars.Low - atr100);
Do I have to do it in a loop or is there another solution?
Thanks
Size:
Color:
You have to do it in a loop.
Size:
Color: