Support Board
Date/Time: Sat, 28 Dec 2024 19:57:43 +0000
Post From: User drawn chart tool properties in a file
[2016-01-12 04:12:00] |
buylosellhi - Posts: 60 |
Thanks. I was able to use the example code in studies.cpp but getting some weird output. I'm able to get the correct values for the dates but the values from DrawingObject.BeginValue etc are all off and dont correspond to prices on the chart. Could you please point me in the right direction. Thanks much ! DrawingObject.UseRelativeVerticalValues = 0; while( sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_REWARD_RISK, DrawingObject, DrawingIndex) ) { SCDateTime entryDate, exitDate; float entryPx, stopPx, exitPx; entryDate = DrawingObject.EndDateTime; exitDate = DrawingObject.ThirdDateTime; entryPx = DrawingObject.EndValue; stopPx = DrawingObject.BeginValue; exitPx = DrawingObject.ThirdValue; |