Download MetaTrader 5

Placing Arrows

To add comments, please log in or register
ed
394
ed  

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
394
ed  
bump
Ray
2650
Ray  

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

ed
394
ed  
anyway to do this via EA code?
Ray
2650
Ray  

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

To add comments, please log in or register