Support Board
Date/Time: Thu, 30 Oct 2025 16:11:17 +0000
Post From: Trying to multiply ATR in ticks
| [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! |
