double exit refused

Questions about MultiCharts and user contributed studies.
waldem
Posts: 113
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

double exit refused

Postby waldem » 21 Apr 2016

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;


User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2944 times

Re: double exit refused

Postby Henry MultiСharts » 21 Apr 2016

Hello waldem,

What is the exact error you receive from the broker?

waldem
Posts: 113
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: double exit refused

Postby waldem » 21 Apr 2016

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.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2944 times

Re: double exit refused

Postby Henry MultiСharts » 25 Apr 2016

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.

syswizard
Posts: 170
Joined: 15 Dec 2012
Has thanked: 13 times
Been thanked: 5 times

Re: double exit refused

Postby syswizard » 05 May 2016

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....

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2944 times

Re: double exit refused

Postby Henry MultiСharts » 24 May 2016

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.


Return to “MultiCharts”