ata taheri: . i cant whrite this in expert
Perhaps you should read the manual. Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
ata taheri:
hi dears
i want to select a candel for exampel number 1 and check myCondition is true in candel 1 or no. i cant whrite this in expert
void OnTick() { int selected_candle = 1; bool your_condition; double candle_select = iClose(NULL,0,selected_candle); if(your_condition == candle_select){ // do something here } }
your question is not clear with logic how you are going to select a candle but you can do something like this, code is not compiled, its for reference only
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi dears
i want to select a candel for exampel number 1 and check myCondition is true in candel 1 or no. i cant whrite this in expert