I try to trade in two charts of the same type with two Expert Advisors. Though I get problems with my trades and objects.
How am I able to fix that. I heard that magic numbers may be an option. How to use them and are there better ways to fix that problem?
Objects are specific to the chart they are on. How are you able to fix it . . . well you haven't actually said what you wan to fix, just that you have problems. Well we all have problems . . .
You only need Magic Numbers if you are trading different timeframes on the same pair. Otherwise you can simply check the OrderSymbol() after you have selected the order . . .
Well some details:
- I have objects for the trades and they are perfectly fine. Though I can see the order lines that also get created when you trade manually in both charts.
Would it work if I assign unique magic numbers for each trade so that every trade has different magic numbers? Or how can I assign these orders to just one chart so that they are not seen on other charts but only in the chart they have been executed in?
Would it work if I assign unique magic numbers for each trade so that every trade has different magic numbers? Or how can I assign these orders to just one chart so that they are not seen on other charts but only in the chart they have been executed in?
I don't think you can. Those lines are not under your control, why do you even need to worry about them ? your EA can't see them.
Though when you have for example four/five EAs running you may get confused but whatever .. as long as it doesn't affect anything.
Confused ? isn't your EA trading for you ?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I try to trade in two charts of the same type with two Expert Advisors. Though I get problems with my trades and objects.
How am I able to fix that. I heard that magic numbers may be an option. How to use them and are there better ways to fix that problem?