Open price of 5 minutes, 15 minutes and 30 minutes Bar
Open price of 5 minutes, 15 minutes and 30 minutes Bar
22 Mar 2023, 15:12
Hi how to get 5 minutes, 15 minutes and 30 minutes Bars Open price? What os the best way ?
Thank you !
Replies
pietramarek
23 Mar 2023, 10:17
RE:
PanagiotisChar said:
Hi there,
You can use Bars.OpenPrices
Need help? Join us on Telegram
Need premium support? Trade with us
Hi I used also this code and I think It's work fine :
Bars bars15 = MarketData.GetBars(TimeFrame.Minute15);
int currentBarIndex15 = bars15.Count - 1;
Bar currentBar15 = bars15[currentBarIndex15];
double openPrice15 = currentBar15.Open;
Print("15min " + openPrice15);
@pietramarek
PanagiotisChar
23 Mar 2023, 09:02
Hi there,
You can use Bars.OpenPrices
Aieden Technologies
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar