Support Board
Date/Time: Wed, 12 Feb 2025 14:51:06 +0000
Post From: Prices incorrect for Open, High, Low Close
[2020-10-30 03:59:59] |
like2trade - Posts: 117 |
Hi, I displayed the following prices for Silver futures SIZ20 in the message log. I am using these numbers in ACSIL logic and it is not working because the Silver prices should be up to only 3 digits after the decimal point. The following numbers contain a 1 and 2 as the last digits which is not supposed to happen. Do you know what the problem is? O: 23.370001, H: 23.370001, L: 23.365002, C: 23.370001 This is the code that produced this in the message log. MessageText.Format("O: %f, H: %f, L: %f, C: %f", sc.Open[sc.Index - 1], sc.High[sc.Index - 1], sc.Low[sc.Index - 1], sc.Close[sc.Index - 1]); sc.AddMessageToLog(MessageText, 0); Thank you. |