Page 1 of 1

double exit refused

Posted: Apr 21 2016
by waldem
Hallo team, is never happen to you that when you are long you send togethet target and stop and you receive error from broker because one of 2 order try to go short?
it seems to me that in past we already had this discussion but i don't remember where i'm wrong...

Code: Select all

if marketposition = 1 then
Begin


SELL ("L_Target2") MarketPosition_at_Broker_for_The_Strategy shares next bar at LINEATGT limit;

SELL ("L_Stop2") MarketPosition_at_Broker_for_The_Strategy shares next bar at LINEASTOP stop;


Re: double exit refused

Posted: Apr 21 2016
by Henry MultiСharts
Hello waldem,

What is the exact error you receive from the broker?

Re: double exit refused

Posted: Apr 21 2016
by waldem
the error is that i don't have the rigth to go short in this stock therefore one of 2 order is refused.
seems that one of two sell is interpreted like sellshort. or that is not possible to send 2 opposite signal for the same quantity like OCO order.
crazy.

i will solve simply activating the sell 5 tick before the limit or stop, but make no sense.
maybe is again problem of my poor broker..
i don't know.

Re: double exit refused

Posted: Apr 25 2016
by Henry MultiСharts
Hello waldem,

MultiCharts does not reject any orders itself. If the order is rejected by the broker then you need to contact your broker for clarifications.

Re: double exit refused

Posted: May 05 2016
by syswizard
Hello waldem,

MultiCharts does not reject any orders itself. If the order is rejected by the broker then you need to contact your broker for clarifications.
Yes, but this seems like MC's Power Language is not able to specify an OCO order to the broker.
Thus the broker treats each order INDEPENDENTLY....
but then I reviewed this post: http://www.multicharts.com/discussion/v ... =1&t=48001
and it appears the only difference is the "next bar" qualification.
Perhaps that is preventing these orders from being classified as OCO.
BTW: I still don't understand what OOF (Optimize Order Flow) does....

Re: double exit refused

Posted: May 24 2016
by Henry MultiСharts
Hello waldem,

MultiCharts does not reject any orders itself. If the order is rejected by the broker then you need to contact your broker for clarifications.
Yes, but this seems like MC's Power Language is not able to specify an OCO order to the broker.
Thus the broker treats each order INDEPENDENTLY....
but then I reviewed this post: http://www.multicharts.com/discussion/v ... =1&t=48001
and it appears the only difference is the "next bar" qualification.
Perhaps that is preventing these orders from being classified as OCO.
BTW: I still don't understand what OOF (Optimize Order Flow) does....
Hello syswizard,

Only IB, FXCM and CQG (since version 9.1) have Native OCO group support.
For the other brokers the OCO group is emulated by MultiCharts.

As for the Optimize Order Flow - you can check how it works here.