Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 01:22:00 +0000



Post From: sc.ATR has different result with ATR study's

[2019-06-14 11:40:22]
PK - Posts: 12
Hi,

I tested on USDJPY pair and rather surprise why the result produced by sc.ATR (0.00254) is far different with the one produced by ATR study (0.035) at current index.
+my code:
sc.ATR(sc.BaseDataIn, TrueRange, AverageTrueRange,14, MOVAVGTYPE_SIMPLE);
s_RMessage.Format("ATR: %.5f", AverageTrueRange[sc.Index]);
sc.AddMessageToLog(s_RMessage,1);
+for the inputs of ATR study, I also set 14 and Simple moving average type.

Could you support to double-check on the issue?

Thanks & regards.