Hi Guys , ive tried many thing but i cant solve this....
I have Several pairs being analysed and when a condition its true i want to send a order...
Example:
if(Sell_GBPCAD)
{
ticket1=OrderSend("GBPCAD",OP_SELL,FixedLotSize,Bid,3,0,Bid - 0.00050,"SG_PipKiller",MAGICMA,0,Red);
CountB_GBPCAD=False;
}
if(ticket1>0)
{
if(OrderSelect(ticket1,SELECT_BY_TICKET,MODE_TRADES))
Print("SELL GBPCAD order opened : ",OrderOpenPrice());
}
else
Print("Error opening SELL GBPCAD order : ",GetLastError()) ;
Now because im loading the EA on EURUSD Chart , its always putting the order on EURUSD and this case its for GBPCAD ...
Someone can help me :-)
Thanks
I have Several pairs being analysed and when a condition its true i want to send a order...
Example:
if(Sell_GBPCAD)
{
ticket1=OrderSend("GBPCAD",OP_SELL,FixedLotSize,Bid,3,0,Bid - 0.00050,"SG_PipKiller",MAGICMA,0,Red);
CountB_GBPCAD=False;
}
if(ticket1>0)
{
if(OrderSelect(ticket1,SELECT_BY_TICKET,MODE_TRADES))
Print("SELL GBPCAD order opened : ",OrderOpenPrice());
}
else
Print("Error opening SELL GBPCAD order : ",GetLastError()) ;
Now because im loading the EA on EURUSD Chart , its always putting the order on EURUSD and this case its for GBPCAD ...
Someone can help me :-)
Thanks