Download MetaTrader 5
To add comments, please log in or register
Find out how to add a video in the messages editor
ed
393
ed 2008.10.09 16:36 

How can I place the standard green and red arrows where my trades are opened if I open them for another chart?

Right now I am controlling all buys and sells of both the EURUSD and the USDCHF from the EURUSD chart.  The arrows get placed on the EURUSD chart just fine,,but none show up on the USDCHF.

Here's my order send function:

void Buy(double Lots,int Slippage,int Magic)
{
   int Ticket = OrderSend("EURUSD",OP_BUY,Lots,MarketInfo("EURUSD",MODE_ASK),
            Slippage,0,0,NULL,Magic,0,Green);
            
   Ticket = OrderSend("USDCHF",OP_BUY,Lots,MarketInfo("USDCHF",MODE_ASK),
            Slippage,0,0,NULL,Magic,0,Green);
}
???
ed
393
ed 2008.10.11 16:00  
bump
Ray
2655
Ray 2008.10.11 20:33  

open the history in the teminal and drag the orders you want to see onto the chart.

ed
393
ed 2008.10.12 16:20  
anyway to do this via EA code?
Ray
2655
Ray 2008.10.12 23:31  

Write code to read the history and draw whatever you want on the chart.

/
To add comments, please log in or register