Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 13:33:46 +0000



Post From: I buy at the end of a candle but it is filled in the next candle

[2021-06-05 10:44:14]
User907968 - Posts: 802
Review the documentation for sc.GetBarHasClosedStatus, particularly this "The very last bar in the chart is never considered a closed bar until there is a new bar added to the chart."

sc.GetBarHasClosedStatus()

At the point you are entering your order, a new bar has been added to the chart already, so although your arrow is drawn under the closed bar, the order is actually entered on the new chart bar.