Set the time from now in seconds.
For example if you want the order to expire after 30 minutes then you have to use this:
How do I code the expiration for my pending Orders?
i.e.,
Thank You so much!!!!!!!
It works!!!
It should be on this thread https://www.mql5.com/en/forum/174194
MetaEditor.
First of all you must decide: is it EA or indicator?
Because everything should be placed in different folders ...
This post will help you https://www.mql5.com/en/forum
So, after placing your, let's say, EA in right foder you must open MetaEditor.
It is more good to open MetaEditor from MetaTrader.
I am having few copies of Metatrader in my PC so if I do not want to be confused about which MetaEditor for which Metatrader so I am openning MetaEditor from Metatrader: right mouse click on any indicator and select "Modify". MetaEditor will be opened.
Find your EA (or indicator) in MetaEditor.
Use this one:
or this menu:
And open your EA (or indicator) and compile it. Just click on this one:
If you have any errors so you will see it here:
If no error so you can find your ex4. Do you remember the forder where you placed your EA or indicator?
This post https://www.mql5.com/en/forum
So go to the same folder and you will find your ex4 file.
If you want to change your ex4? Do the same - compile the code and MetaEditor will generate new ex4.
Because Metatrader is using ex4 files.
Newdigital
Thanks a million. You do an awesome job on this forum!
First of all you must decide: is it EA or indicator?
Because everything should be placed in different folders ...
This post will help you https://www.mql5.com/en/forum
So, after placing your, let's say, EA in right foder you must open MetaEditor.
It is more good to open MetaEditor from MetaTrader.
I am having few copies of Metatrader in my PC so if I do not want to be confused about which MetaEditor for which Metatrader so I am openning MetaEditor from Metatrader: right mouse click on any indicator and select "Modify". MetaEditor will be opened.
Find your EA (or indicator) in MetaEditor.
Use this one:
or this menu:
And open your EA (or indicator) and compile it. Just click on this one:
If you have any errors so you will see it here:
If no error so you can find your ex4. Do you remember the forder where you placed your EA or indicator?
This post https://www.mql5.com/en/forum
So go to the same folder and you will find your ex4 file.
If you want to change your ex4? Do the same - compile the code and MetaEditor will generate new ex4.
Because Metatrader is using ex4 files.Thanks NewsDigital.
You have helped me a lot!
Check this thread https://www.mql5.com/en/forum/176320 - because i am not sure exactly but it should be some MM library files with more than 20 kinds of MM and instruction about where to place one line in the code to (just one line only). But I am not sure ... may be I did not ppst it ... it was on some old thread and I posted it exactly ...
As I remember I made MM for MACD sample EA using one of this library file just for 1 minutes ...
Try to search the thread. If not so I will ry to find it later on the forum or inside my PC (it will be easy on the forum).
Checked MM Thread
Doesn't seem to be any code for simple MM there. just some theory.
I just want a risk percent setting and have it calculate the first initial lot size based on my available account balance.
I have seen it on other EA's like 10pts3 and I tried to cut and paste it into my EA but I got errors I couldn't fix.
Maybe if you find some code you could point me in the right direction.
Thanks newdigital
Q for Newdigital or other?
Dumb question I'm sure.
Can you tell me the easiest way to convert EA's ex4 to an mq4 file?
Thanks
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
How do I code the expiration for my pending Orders?
i.e.,
to make my pending Orders Delete in 1 hour?