View Single Post
  #1 (permalink)  
Old 05-15-2006, 11:49 AM
timbo timbo is offline
Junior Member
 
Join Date: Nov 2005
Posts: 14
timbo is on a distinguished road
Possible to trade different currency than the one EA is attached to?

Hi guys,

Wondering if anyone can help me out - I'm trying to write an EA that will be attached to the EURUSD chart, but want it occasionally to place a USDCHF trade as well as the EURUSD ones. Is this possible? I tried the following code:

OrderSend("USDCHF",OP_BUY,Lots,Ask,3,StopLoss*Poin t,TakeProfit*Point,"UC",55555,0,Green)

But I kept getting the message "unknown symbol name USDCHF for OrderSend function". Is this because the EA is attached to the EURUSD chart? And is there any way to tell the EA to buy a different currency (and then later to close it)?

Any suggestions would be very appreciated! (Oh, and does anyone know of an EA that does this? I find it helpful to look at the code of working EA's when I'm struggling with a problem.)

Tim
Reply With Quote