Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1567

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
I think it should be like this
If we create a new object every time in OnTick(), the time of the previous tick will not be saved anywhere.
The whole point of creating a global object is to store the time of the previous tick, comparing it with the time of the new tick we'll know whether there's a new bar or not...
Why do we need this variable NB_M1 ?
class CIsNewBar
returns true/false , what time are we talking about?
Try it, in the tester it's ok
No, that's not it, it opens and closes one contract at a time.
Here, correct "0" to "2".
how to make this trouble automatic? ORDER_FILLING_FOK ORDER_FILLING_IOC ORDER_FILLING_RETURN
maybe someone has a ready-made one ?
how to make this trouble automatic? ORDER_FILLING_FOK ORDER_FILLING_IOC ORDER_FILLING_RETURN
Maybe somebody has a ready-made example?
There is a ready example in the documentation. But first you need to define a fill policy for a symbol. Search for SYMBOL_FILLING_FOK
how to make this trouble automatic? ORDER_FILLING_FOK ORDER_FILLING_IOC ORDER_FILLING_RETURN
Maybe somebody has a ready-made?
Filling MqlTradeRequest directly yourself ?
There are too many pitfalls !
look at CTrade::FillingCheck() - how developers recommend to define filling
Good afternoon, all. Maybe someone has encountered a similar situation? In general, there is a scalable oscillator. I need to know programmatically what are the extreme values of the scale of the visible window of this oscillator at the moment. I hope I have made myself clear). I would be grateful for help!
with identifiers CHART_PRICE_MIN and CHART_PRICE_MAX