Support Board
Date/Time: Sun, 19 Jan 2025 17:48:02 +0000
Post From: Cumulative Delta data error
[2018-04-19 18:33:49] |
WarriorTrader - Posts: 245 |
Here is the code I use for the "X" in the picture. It uses the DeltaLowArray right from the source. The problem is with the DeltaLowArray which gets it data forom the sc.GetStudyArrayUsingID() SCFloatArray DeltaLowArray; sc.GetStudyArrayUsingID(DeltaStudy.GetStudyID(), 2, DeltaLowArray); //Historic Low Pivot short term
PrevLowPivotMarkerDelta.Clear(); // Reset tool structure. Good practice but unnecessary in this case. PrevLowPivotMarkerDelta.ChartNumber = ExternalChartNo; PrevLowPivotMarkerDelta.AddAsUserDrawnDrawing = 1; PrevLowPivotMarkerDelta.DrawingType = DRAWING_MARKER; //PrevLowPivotMarkerDelta.LineNumber = 7417760; PrevLowPivotMarkerDelta.Region = 1; //BarIndex = max(0, sc.ArraySize - 35); PrevLowPivotMarkerDelta.BeginIndex = SavedPrevLowPivotIndex; PrevLowPivotMarkerDelta.BeginValue = DeltaLowArray[SavedPrevLowPivotIndex]; //this data is coming from SC sc.GetStudyArrayUsingID() function PrevLowPivotMarkerDelta.Color = SavedPrevLowPivotColor; //RGB(255,255,0); PrevLowPivotMarkerDelta.AddMethod = UTAM_ADD_ALWAYS; PrevLowPivotMarkerDelta.MarkerType = MARKER_X; PrevLowPivotMarkerDelta.MarkerSize = 3; PrevLowPivotMarkerDelta.LineWidth = 3; sc.UseTool(PrevLowPivotMarkerDelta); My code is working as expected. I have been around here a long time (7 years) and have NEVER asked anyone at SC to debug my code. Thx, WT Date Time Of Last Edit: 2018-04-19 18:38:14
|