Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 02:26:00 +0000



Post From: ACSIL - trailing stop loss and orders

[2019-09-17 00:34:07]
MattK - Posts: 42
Hi Chris,

Thanks for the fast response time!

The chart sessions times settings are the default one: 8:30-15:14, I just now removed the evening and weekend sessions.

I tried the sc.FlattenAndCancelAllOrders() function instead of the CancelOrder() I was using and it seems to be working better.

However, when I backtest I still have issues with the trades: the system places around 3-4 trades per day and then one day it just stops for no apparent reason. The last trade was placed at 10:02 am and it didn't exit.

I looked at the chart settings, days to load, etc but don't understand why.

In the trade activity log, it says "Trade simulation fill" and then nothing. It doesn't say that the stop might have been cancelled or anything.

Thanks again for all your help.

Best,
Matt