Support Board
Date/Time: Sun, 07 Dec 2025 17:59:09 +0000
Post From: using calculated ATR in my system
| [2021-12-10 11:38:28] |
| User61576 - Posts: 453 |
|
I am calculating my ATR using float atr_bars = sc.ATR(sc.BaseDataIn, Subgraph_ATR, ATR_Length.GetInt(), MOVAVGTYPE_SIMPLE);
and calculating my target price order based on this: target1Price = mktPrice - (tPriceInput.GetInt() * sc.TickSize * atr_bars);
but when building (remote) i get this error: error: cannot convert 'c_ArrayWrapper<float>' to 'float' in initialization
I hope someone could help as I am new to this thanks |
