Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 23:41:55 +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?