Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 22:45:19 +0000



sc.ATR has different result with ATR study's

View Count: 601

[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.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account