Stoploss order entered and rejected at end of session  [SOLVED]

Questions about MultiCharts and user contributed studies.
firemag
Posts: 43
Joined: 15 Sep 2017
Has thanked: 9 times
Been thanked: 2 times

Stoploss order entered and rejected at end of session

Postby firemag » 28 Nov 2017

I have a strategy that uses SetStopLoss(), but, for some reason, the order is going in at the end of the session and consequently being rejected. Do I have an incorrect setting?
2017-11-28_9-45-33.png
(4.26 KiB) Downloaded 1130 times
2017-11-28_9-56-10.png
(25.54 KiB) Downloaded 1130 times
2017-11-28_9-45-08.png
(21.71 KiB) Downloaded 1130 times

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Stoploss order entered and rejected at end of session

Postby Svetlana MultiCharts » 01 Dec 2017

Hello, Firemag

When the issue is reproduced, please, don’t close MultiCharts and send us logs through Help -> Feedback.
Also, please provide ID of the order.

firemag
Posts: 43
Joined: 15 Sep 2017
Has thanked: 9 times
Been thanked: 2 times

Re: Stoploss order entered and rejected at end of session

Postby firemag » 02 Dec 2017

When the issue is reproduced, please, don’t close MultiCharts and send us logs through Help -> Feedback.
Also, please provide ID of the order.
Okay, will do.

firemag
Posts: 43
Joined: 15 Sep 2017
Has thanked: 9 times
Been thanked: 2 times

Re: Stoploss order entered and rejected at end of session

Postby firemag » 05 Dec 2017

When the issue is reproduced, please, don’t close MultiCharts and send us logs through Help -> Feedback.
Also, please provide ID of the order.
Okay, will do.
This occurred again on a trade in CL with GAIN Capital. I submitted the logs and order IDs yesterday (12/4). Did you receive them?

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Stoploss order entered and rejected at end of session

Postby Svetlana MultiCharts » 05 Dec 2017

Hello, firemag,

Yes, we received them. Thank you for the provided information.

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Stoploss order entered and rejected at end of session  [SOLVED]

Postby Svetlana MultiCharts » 12 Dec 2017

Logs analysis showed the following:
The broker/exchange did not accept the orders and rejected them, because they were sent after the session close.
We can recommend the following:
- Use GTC for Time in Force parameter.
- If you need to have the order cancelled before sessions close – modify your script so that it stops sending the orders several minutes before session close.
- If you need to have the order active at broker after session close - change the symbol sessions to end 1-5 minutes earlier than regular closing time to make sure the orders are received by the broker before session close.
If you are using Daily bars for trading - enable the option "Build from minutes" in Format-> Instrument-> Settings tab to have the sessions applied.
If market is slow before session close you may also need to change the timeout for forced bar close to 1 second as described here:
http://www.multicharts.com/discussion/v ... 642#p52185

Please also update MultiCharts to the latest version through Help -> Check for updates.

Miketdm88
Posts: 2
Joined: 21 Jul 2023

Re: Stoploss order entered and rejected at end of session

Postby Miketdm88 » 16 May 2024

I also got this issue for quite some time. Checked with the online Chat support team and can't find a good solution for this still.

This kind of issue only happens for the SetStopLoss(X$) and SetProfitTarget(X$) command in the Signal script.

It would be great that we can have the options for the StopLoss order and ProfitTarget order in "Set TIF for order types" property configuration so we can just set these two as "GTC" and still leave other as Default (such as Day)! I think this would solve the problem.


Return to “MultiCharts”