Built-in trailing stop is frequently ignored.

(please note the upload order of the images does not represent the image #)
As the title says: Built-in trailing stop is frequently ignored.
It doesnt matter if you use the built-in ATR trailing stop, or a price level like "Lowest[X]", there will be trades in the backtest that arent executed as they should. 
Here as some screenshot examples-
We'll start with 3* ATR[14] as our test. 
(see image-0)



Typical set of losses produced by this. Normal behavior:
(see image-1)
Normal behavior win:
(see image-2)


Now here are some bug examples:
This should have probably have been a loss taken as the price greatly exceeded our ATR trail stop, but the backtest keeps the trade open for many days without taking a loss.
(see image-3)

Using the bottom trade navigation, I can visually see trades that remained open too long. So the bug has a high frequency of occurrence. It makes backtesting using stops/trailing stops unreliable.
(see image-4)


Other details: 
I'm backtesting in Algowizard (SQx)
1 minute tick simulation
This bug is repeatable using a variety of trailing stop methods on any data. 
I regard this bug as urgent.


Thank you SQ team for looking into this. I appreciate you.
Any additional information required, just ask me. I'll monitor this topic.

Attachments
No attachments
  • Votes +1
  • Project AlgoWizard
  • Type Bug
  • Status Moved
  • Priority Normal
  • Assignee None

History

t
#1

Threshold

23.08.2022 21:13
I think this is may be caused when there trail stop is not set because price did not move beneficially to trigger it. So it might be more of me not understanding the trail stop mechanics, than a bug. I fixed this by making a stop loss that uses the same settings as the trail stop as an extra safety.
Dw
#2

Diwi

26.08.2022 19:32
Voted for this task.
TT
#3

Tamas

07.09.2022 09:55
Task moved to project StrategyQuant X, new link to task: https://sq.projectpanel.com/tasks/sq4_9216

Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please