[116]End of Day Exit Time/ Exit At End Of Range in Build Options doesn't work (Code Type: EasyLanguage).

The setting (End of Day Exit Time/ Exit At End Of Range) in Build Options doesn't work.
I set up the Exit Time in 1330, but the program does not execute, until the end of day (I ticked the option).
The problem caused Intraday trade strategy order can't exit before the end of day.

By the way, I'm Multicharts user, I don't know if this situation happened to another Trading platform(MT4, MT5).
Attachments
No attachments
  • Votes +4
  • Project StrategyQuant X
  • Type Bug
  • Status Fixed
  • Priority Normal

History

t
#1

Randy

26.12.2018 07:42

Task created

t
#2

Randy

26.12.2018 13:43
Voted for this task.
t
#3

Randy

26.12.2018 13:44

Subject changed from End of Day Exit Time/ Exit At End Of Range in Build Options doesn't work (Code Type: EasyLanguage). to [116]End of Day Exit Time/ Exit At End Of Range in Build Options doesn't work (Code Type: EasyLanguage).

js
#4

sherlockfeier

26.12.2018 13:48
Voted for this task.
tW
#5

Tina

27.12.2018 01:00
Voted for this task.
MF
#6

Mark Fric

02.04.2019 12:54

Status changed from New to Refused

exit time for Exit at End Of Day or Exit On Friday should have effect only in MT4/MT5, not in Tradestation or MultiCharts.


In TS/MC is is handled by calling SetExitOnClose - you cannot specify the exact time there, it will close automatically at the end of daily session.


Exit time configuration is there only because MT4/MT5 don't have this automatic functionality and we have to set an exact time to check and close the orders.



t
#7

Randy

02.04.2019 16:18

I highly recommend SQ should fix this problem because MC/TC user needs closing the position at the exact time before the closed time of day.

(The code should like this: "If Time >= 1600 then Buytocover/Sell next bar at market;" )


For example, the FTSE China A50 Futures in SGX trading time is 09:00 to 16:30.

If just use SetExitOnClose, MC/TC will not close the position.

Because there is no ticks comes in after 16:30 and the Order will not be sent to the broker too.

The signal will show on the chart till the first ticks of next day.


The SetExitOnClose always use in the Last trading day.

For example, the FTSE China A50 Futures in SGX will close at 14:20.

The broker will close the position automatically.


Finally, I think situations from MC/TC user needs to close the position before closed time is like to MT4/MT5 should close the position on Friday.

Our common goal is to avoid the gap risk from the market.

The different is MC/TC user always trade the Futures which is not continuous time but MT4/MT5 user trade the Forex always 24 hours continuous.

MF
#8

Mark Fric

03.04.2019 09:30

Status changed from Refused to Fixed

ok, i understand your point, we'll implement it. We will be supporting specific exit time also in Tradestation/MultiCharts engine
RL
#9

rickliao

04.04.2019 18:53
Voted for this task.
RL
#10

rickliao

04.04.2019 19:05

I totally agree with Randy, this is very important to futures traders to close all positions for EOD and EOF strategies.


Mark, maybe you can think about implementing an option to let user setup specific exit time for EOD and EOF, 

or an option to close all positions at TF's last bar of session at open for EOD and EOF.


MF
#11

Mark Fric

04.04.2019 19:43
I already replied that I implemented it.

It works in a way that you CAN specify exit time for exit at end of day or on Friday.


Strategy will exit at this specified time if the real session is longer, or it will exit at end of session using SetExitOnClose .


Votes: +4

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please