Support Board
Date/Time: Mon, 25 Nov 2024 02:30:49 +0000
Post From: [ACSIL] float conversions
[2013-12-18 06:27:28] |
ejtrader - Posts: 688 |
mainframer - Just a thought(haven't tested) - do you want to try this option instead and see? //My original solution here fails because floats lose information when added. float highestHigh = sc.BaseData[SC_HIGH][sc.Index]; float lowestLow = sc.BaseData[SC_LOW][sc.Index]; float price = lowestLow; while ( price <= highestHigh ) { //supposed to draw line for each tick, but 'price' float gets skewed. myDrawFunction(price); price += sc.TickSize; } Date Time Of Last Edit: 2013-12-18 06:29:09
|