Greeting all..
As a non code person i spent ages slowly grasping mql4 to the point i could make most things work.. But I am back to square one with mql5..
So I need a basic expert code that does the following.................
1. Finds the high and low of a candle based on the close of the past hour.. Say close of hour 20 on 1 hr time frame for example..
https://www.mql5.com/en/docs/constants/structures/mqlrates
https://www.mql5.com/en/docs/series/copyclose
https://www.mql5.com/en/docs/series/copyopen
https://www.mql5.com/en/docs/series/copyhigh
https://www.mql5.com/en/docs/series/copylow
2. It takes those values, adds 20 pips to each, and places a buy and a sell order either side of those new values.. They will also need have a stop and take profit of 50 pips included...
https://www.mql5.com/en/docs/constants/structures/mqltraderequest
3 Then if hour equals 4 it deletes all unfilled orders...
https://www.mql5.com/en/docs/series/copytime
I would be so appreciative with any help. Even anything basic to just give me a starting platform and i can go from there..
Thanks in advance and gt...
Thank you.. Ill see how i go.. Still confusing but ill try..
Im still struggling with this new code format.. urghh.. Even when i copy and paste example given by mt it still comes up with errors..
We dont know the errors if you do not post them.
Also if your fluent in MQL4 why did you feel the need to switch to MQL5 ? I am always curious to know.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Greeting all..
As a non code person i spent ages slowly grasping mql4 to the point i could make most things work.. But I am back to square one with mql5..
So I need a basic expert code that does the following.................
1. Finds the high and low of a candle based on the close of the past hour.. Say close of hour 20 on 1 hr time frame for example..
2. It takes those values, adds 20 pips to each, and places a buy and a sell order either side of those new values.. They will also need have a stop and take profit of 50 pips included...
3 Then if hour equals 4 it deletes all unfilled orders...
I would be so appreciative with any help. Even anything basic to just give me a starting platform and i can go from there..
Thanks in advance and gt...