Login Page - Create Account

Support Board


Date/Time: Thu, 26 Dec 2024 12:45:29 +0000



Trying to multiply ATR in ticks

View Count: 1226

[2015-12-12 19:05:47]
cazeek - Posts: 33
Hello,

I am trying to multiply the ATR from the sc.ATR() function, but when I have a price that's quoted in ticks (1/32nds), the number is nonsense. Is there away to code this properly when dealing with ticks? Something other than "float" I assume?

This is what I have now:

  sc.ATR(sc.BaseDataIn, sc.Subgraph[8], ATRValue.GetInt(), MOVAVGTYPE_SIMPLE);
  float InitialATR = sc.Subgraph[8][sc.Index];
  EODStop = BuyPrice - 2*InitialATR;
  sc.Subgraph[6][sc.Index] = EODStop;

Thanks!
[2015-12-12 23:35:55]
Sierra Chart Engineering - Posts: 104368
If you are asking about determining the correct order price rounded to the nearest tick, do not worry about that. Sierra Chart will adjust it to the nearest tick when you submit the order from the ACSIL trading system.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account