Support Board
Date/Time: Sun, 22 Dec 2024 17:10:32 +0000
Post From: Using Persistent Variables for Time
[2015-02-07 03:13:17] |
CustomIndicators - Posts: 126 |
I'm trying to get my automatic drawings to show up correctly, but I'm having a hard time. Am I doing this right? Up top, I put: SCDateTime& peakOneDT=sc.PersistVars->scdt1; Down in the logic, I have: peakOneDT = sc.BaseDateTimeIn[sc.Index -2]; And when I try to use that in a drawing: IndicatorTarget.BeginIndex = peakOneDT; IndicatorTarget.BeginValue = sc.BaseData[SC_HIGH][peakOneDT]; This is for a DRAWING_HORIZONTAL_RAY. If I comment out the BeginIndex, it gives me the line on the right price. If I don't comment out the BeginIndex, it gives me nothing. Am I doing the SCDateTime persistent variable wrong or something? |