Closing price constant of the current bar or of the Nth last bar.
Syntax:
1 |
Close[N] |
Example:
1 2 3 4 5 |
//Close of the current bar Close[0] or Close //Close of the 20th previous bar from current close Close[20] |
whate about close value for multiple timeframe ?
example : code is attached to 5mn chart timeframe
TIMEFRAME(2 hours,updateonclose)
indicator1 = SuperTrend[3,3] //optimize
c3 = (close > indicator1)
Close will refer to the 5mn current candle ? or the “previous” close of the 2h candle ?
With “updateonclose”, in your example, the Close value will be equal to previous closed 2 hours bar.
Hello,
Maybe a very simple question…
What about the real time value of the price ?
Example : Chart in 1D bar
Does “close” give the real time value tick by tick ?
If yes, what differentiate real-time value from final closed bar value for the bar ?
Idea : Each day, during the day, I want to buy at a price %levelX and sell at %levelY. Any suggestion recommended please ?
Thank you