Support Board
Date/Time: Tue, 11 Feb 2025 18:39:05 +0000
Post From: Trade Entry/Exit Markers Move with Each New Bar
[2020-09-09 18:32:46] |
BlakJak - Posts: 108 |
I have traced the problem to this function. Could it be the inline void GSBSignal::CloseLessPrevLowD(const SCStudyInterfaceRef sc, const int& daysBack, SCSubgraphRef sg, const int& idx) const
{ float o, h, l, c; sc.GetOHLCForDate((sc.BaseDateTimeIn[idx]).SubtractDays(daysBack), o, h, l, c); sg.Data[idx] = sc.Close[idx] - l; } I commented out the sc.GetOHLCForDate() function and the code starting working fine without the markers moving forward. Can you please check that function for a bug? |