EA works only on one pair.

To add comments, please log in or register
Rafał Kadlof
11
Rafał Kadlof  

I‌'d written my first EA and tested it on GBPJPY primary. But if i change the pairs in Strategy Tester - it does not work (EURUSD for example).
I checked my code and it does not include GBPJPY symbol.

The order command looks like:

---------------OrderSend(Symbol(),OP_BUY,0.1,Ask,2,Bid-300*Point,Bid+900*Point) ----

Symbol() should place the trades on current chart/chosen pari in strategy tester i guess. 


Anyone can help me?

Regards 
Rafal

Marco vd Heijden
Moderator
8168
Marco vd Heijden  
Symbol() trades the chart symbol.
To add comments, please log in or register