Support Board
Date/Time: Fri, 05 Dec 2025 18:23:46 +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
|
