Hi community,
if I trade the ES- or ESTX50-Future I need the close of the previous cash-session to visualize the opening gap.Also as an additional S/R-line for the Future trading.
You can use the "Bar at special time"-Indicator for indicating the Open,High,Low or Close of a time(Zeit)-specified bar of each day.
inputs:
Zeit = closing-time of the bar you want to see
Wert = O , H , L , C or any formula e.g. ((H-L)/2)
It dont work if you use for e.G. Zeit = 1730 on a 1 hour chart.
You have to choose the chartresolution depending on the bar you want to get the data.
If you want to get the data of Zeit = 1732 you need a 2-minute chart or lower, if Zeit = 2215 (close of S&P-cash) you can put it at a 15-min-chart as highest resolution.
the code as txt-file:
//**********
Inputs: Zeit( 1730 ),
Wert( close );
variables: var0(0);
if (time =Zeit ) then var0=Wert else var0=var0[1];
plot1(var0);
//**********
aiti
Category MultiCharts
|
|
|