MQL4 - automated forex trading   /  

Forum

Login | Register | Language: ru cn en
Buy Latest Technical Indicators in MetaTrader Market

Placing Arrows

Back to topics list To post a new topic, please log in or register
avatar
124
inkexit 2008.10.09 18: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);
}
???


 
GOLD IN 2015
GOLD IN 2015
Lonny Strike | 19 December 2014, 18:11 | Views: 140
"Physical gold demand in China and India were held back in 2014 amid high stocks and import controls, respectively," said Victor Thianpiriya, commodity strategist at ANZ. "Both these shackles have been removed, putting demand on a solid footing as we head into 2015." In China, physical gold demand will return because stocks are depleting, said Thianpiriya, who sees the precious metal ending 2015 at $1,280 an ounce, up from $1,200 currently.
avatar
124
inkexit 2008.10.11 18:00 #
 
bump
avatar
2646
avatar
124
inkexit 2008.10.12 18:20 #
 
anyway to do this via EA code?
avatar
2646
phy 2008.10.13 01:31 #
 

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

 
Back to topics list  

To add comments, please log in or register