Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1672
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
Removed unnecessary code.
What does it mean?
To be able to calculate this data on different TFs.
I wonder if anyone has an implementation through a class.
I'm trying to understand the logic of classes, it would be a great help for learning.
Good afternoon. Can you help me solve a problem. on an M15 candlestick, several trades open in a row.
I want no more than one trade to open. The logic behind the EA is that until the previous order is closed, the next one will not open, but sometimes a series of deals opens on such a long candlestick. Please advise what to add in the code to prevent this situation?
code snippet :
Um... in iOTi in vOrderModify() always = 1, it's not a ticket but a positive result of OrderSend() operation i.e. value "1".
Thanks. The original code is not mine, so I don't change anything unnecessarily. It works and it works.
Will this help solve my problem?
Good afternoon. Can you help me solve a problem. on an M15 candle, several trades open in a row.
I want no more than one trade to open. The logic behind the EA is that until the previous order is closed, the next one will not open, but sometimes a series of deals opens on such a long candlestick. Please advise what to add in the code to prevent this situation?
code snippet :
I'm just looking for someone who is able to share experience in implementing indicator integration in Expert Advisor
To be able to calculate this data on different TFs.
I wonder if anyone has an implementation through a class.
I'm trying to understand the logic of classes, it would be a great help for learning.
rates_total = Bars time[] = Time[] open[] = Open[] high[] = High[] low[] = Low[] close[] = Close[]
Show OnTick()
Thank you. The original code is not mine, so I don't change anything unnecessarily. It works and it works.
Does this solve my problem in any way?
Try this, remove bCheckOrders() from OnTick() and put it as highlighted.
Nah, I was wrong, OrderSend() returns a ticket or -1, so there's nothing wrong with that.
Okay.
I'll keep that in mind for the future.