Does this EA work with multiple currencies? I had the EA on a platform with two currencies and the EA only opened one trade on one of the currencies ?? the times were 9 and 5 GMT which has passed through the night ?? Weird
Is it because the EA only allows for one trade at a time? The other trade wasn't closed yet before the time the other currency trade should have started. Can you fix that?
I just did another quick test. Using IBFX (GMT broker) set two currencies different magic numbers to trade at 1215 GMT. Only one trade opened. This is the EA I'm using;
matrixebiz: Didn't trade all night I just did another quick test. Using IBFX (GMT broker) set two currencies different magic numbers to trade at 1215 GMT. Only one trade opened. This is the EA I'm using;
Ok, I'm testing again. Maybe my problem was to small account size.
EA is trading, you can check back test.
You have there 2 conditions:
if(ct == StartHour && Low[1]>Open[0] && OpenSell)
if Low[1]>Open[0] (prev. low, curr. open) expert will not open a position.
BongoWhat do these conditions mean? I just want it to open a trade at a specific time according to what the previous bar direction closed at.
Thanks
Just change:
if(ct == StartHour && Close[1]>Open[1] && OpenBuy)
//if(ct == StartHour && High[1]<Open[0] && OpenBuy)
....
Close[1] ONE is previous, [0] current
if Close[1]>Open[1], if Close [prev] is > Open [prev] then Buy...
b.
This is first one.
Thank you for your work
Does this EA work with multiple currencies? I had the EA on a platform with two currencies and the EA only opened one trade on one of the currencies ?? the times were 9 and 5 GMT which has passed through the night ?? Weird
Is it because the EA only allows for one trade at a time? The other trade wasn't closed yet before the time the other currency trade should have started. Can you fix that?
Do I just change;
total=OrdersTotal();
if(total<1)
to;
total=OrdersTotal();
if(total<40)
Thanks
You have to change magic number to each pair.
You have to change magic number to each pair.
Yes, I did have different magic numbers but it still only placed the one trade at a time.
EDIT: I'll check again later.
Didn't trade all night
I just did another quick test. Using IBFX (GMT broker) set two currencies different magic numbers to trade at 1215 GMT. Only one trade opened. This is the EA I'm using;
Didn't trade all night
Check this back test.
EA is not opening trade every day.
Use time from your trading platform.
b.