How use iMAOnArray

Created at 23 Aug 2023, 07:33
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
OK

okapp7x7

Joined 23.08.2023

How use iMAOnArray
23 Aug 2023, 07:33


Hello 

i try use iMAOnArray in Calgo 

this sample of code 

double Ld_FF14[];
   ArrayResize(Ld_FF14, (Ii_0080 - 1), 0);
   ArrayCopy(Ld_FF14, dataArray, 0, 1, (Ii_0080 - 1));
   ArrayResize(Ld_FF14, Ii_0080, 0);
   retryCounter = Ii_0080 - 1;
   Ld_FF14[retryCounter] = NormalizeDouble((Ask - Bid), decimalPlaces);
   ArrayCopy(dataArray, Ld_FF14, 0, 0, 0);
   calculatedResult = iMAOnArray(dataArray, Ii_0080, Ii_0080, 0, 3, 0);
   takeProfitLevel = calculatedResult;
   trailingStopValue = (partialCloseCounter * tradeMargin);
   initialTradeSize = (calculatedResult + adaptiveTradeFactor);

what alternative iMAOnArray  in calgo ? 

thank you 

 

 


@okapp7x7