Support Board
Date/Time: Wed, 15 Jan 2025 13:09:16 +0000
Post From: Last price of a developing bar
[2017-06-15 21:01:18] |
rhovega - Posts: 279 |
I need to reference the last price of a developing bar using ACSIL. For example, I would have expected the following code to plot a square when the last price of a closed bar is equal to the prior bar's high: if (sc.Close[sc.Index] == sc.High[sc.Index-1] && sc.GetBarHasClosedStatus(sc.UpdateStartIndex) == BHCS_BAR_HAS_CLOSED) {PlotSquareSubgraph[sc.Index] = sc.Close[sc.Index] ;} And the following code to plot a square when the last price of a developing bar is equal to the prior bar's high: if (sc.Close[sc.Index] == sc.High[sc.Index-1]) {PlotSquareSubgraph[sc.Index] = sc.Close[sc.Index] ;} Instead, both codes do exactly the same: plot a square when the last price of a closed bar is equal to the prior bar's high. I am thus unable to reference the last price of a developing bar. How can I do that? Thanks Date Time Of Last Edit: 2017-06-16 00:35:34
|