You can open a chart and run a robot on it. Then you can open another chart and run the same robot on it. You can do this as many times as you want, but only one robot (EA) per chart is allowed.
Normally the robots do not know if there is a same one running on a different chart. So they would mess things up (EA on 15 min chart could close position of EA on 30 min chart etc.)
To fix this there's magic numbers. Each robot has one. If you run a robot on a chart and you need the same robot run on a different chart then check in the input field that each robot gets its own distinctive magic number. So they won't interfere. The magic number together with the symbol helps a robot to find its own orders and positions and stay away from others.
- Using OrdersTotal directly and/or no Magic number filtering on your OrderSelect loop means your code
is incompatible with every EA (including itself on other charts and manual trading.)
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 programming forum
MagicNumber: "Magic" Identifier of the Order - MQL4 Articles - And if you are subject to In First Out (FIFO rules-US brokers,).
You can open a chart and run a robot on it. Then you can open another chart and run the same robot on it. You can do this as many times as you want, but only one robot (EA) per chart is allowed.
Normally the robots do not know if there is a same one running on a different chart. So they would mess things up (EA on 15 min chart could close position of EA on 30 min chart etc.)
To fix this there's magic numbers. Each robot has one. If you run a robot on a chart and you need the same robot run on a different chart then check in the input field that each robot gets its own distinctive magic number. So they won't interfere. The magic number together with the symbol helps a robot to find its own orders and positions and stay away from others.
If want to have pending orders will the robot just put the pending orders in for me leave them in
michealhilljr:
If want to have pending orders will the robot just put the pending orders in for me leave them in
It's unclear what do you want to achieve?
It's unclear what do you want to achieve?
- www.investopedia.com
This is possible. A robot can manage more than one trade. And it can set up pending orders and cancel them. If you're US citizen you are not allowed to have long and short open at the same time (no hedge FIFO rule), but pending orders you may place in for any direction without limit. https://www.investopedia.com/terms/n/nfa-compliance-rule-2-43b.asp
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use