Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 16:20:53 +0000



Post From: using calculated ATR in my system

[2021-12-10 11:38:28]
User61576 - Posts: 445
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