This project is read-only.

Send order on different symbol

May 20, 2013 at 2:33 PM
I've developped my trading strategies in an external tools.
From this tool i received order on different symbol (es: "EURUSD", "GBPUSD", ect.)

I shoul develop a connector to send this order to MT4.
The problem is that i should run the EXPERT_net on une specific chart (EURUSD) and the system accept only order for EURUSD symbol.

I've tested this with the TradePlatform.MT4.SDK.Win,

I've modified just this routine
    private void buttonBuy_Click(object sender, EventArgs e)
    {
        metaTrader4.MqlScope(mql => mql.OrderSend("EURUSD", ORDER_TYPE.OP_BUY, 1, mql.Ask(), 10, 0, 0)); //go
        metaTrader4.MqlScope(mql => mql.OrderSend("EURUSD", ORDER_TYPE.OP_BUY, 2, mql.Ask(), 10, 0, 0)); //go

        metaTrader4.MqlScope(mql => mql.OrderSend("GBPUSD", ORDER_TYPE.OP_BUY, 2, mql.Ask(), 10, 0, 0)); // don't go
    }
the third order don't work.

is It possible accomplish this task and which is the right way?