[Build 111] Possibility to limit ATR stop loss / take profit to a max pips value

It would be great if we had the opportunity to set a max stop loss of X pips although the strategy might be using an ATR based stop loss or take profit. So that SQ4 is allowed (example) to use 400 bars x 10.5 value as the stop loss, but not exceeding a setable value of say 100 pips all the time. That would be great:)
Attachments
No attachments
  • Votes +2
  • Project StrategyQuant X
  • Type Feature
  • Status Fixed
  • Priority Normal

History

?
#1

anonymous

22.07.2017 18:41

Task created

MF
#2

Mark Fric

28.07.2017 10:04
we'll see about this, I'll think about how to make it configurable
?
#3

anonymous

05.09.2017 09:34
That would be great. I still want to use ATR stop losses, but with a maximum limit of say 200 pips - SQ3 had that possibility, SQ4 does not. Would be great if you can add that back to SQ4.
MF
#4

Mark Fric

31.01.2018 09:31
we'll do it most probably as an example of custom trading options, but it has to wait a little until we make CodeEditor fully functional
MF
#5

Mark Fric

21.09.2018 14:06

Status changed from New to Fixed

added Min/Max SL and PT in pips
l
#6

ludvick

02.10.2018 14:22
Thank you for this modification, but i would like to request a separation between SL and TP, so if you use ATR on both and set a max SL it wont cut TP. i think it will be a great addition

Maybe if this could be set in "What to build" section, with  SL and TP settings.

l
#7

ludvick

02.10.2018 14:22
Voted for this task.
h
#8

hankeys

02.10.2018 14:37
Voted for this task.
h
#9

hankeys

02.10.2018 14:39

Attachment min slpt.jpg added

thats a good proposal from ludvick


and other thing is - that its not optimal to set min/max sl/pt in the build and trading options - it need to be set right in "what to build" section and need to be hardcoded to the strategy - its only setting in building process


Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please