Topic: Exit at TP or SL only

Hello Traders,

With Express Generator v2.57, we can create strategies that exit at SL or TP only.

We do it by forcing the Generator to use the "Do not Exit" indicator as the only option.

Please follow these steps:

1. Disable all the exit indicators except "Do not Exit":

;; Exit indicators
...
exit_directional_indicators = false
exit_do_not_exit            = true
exit_donchian_channel       = false
...

2. Set the Generator to use only one exit slot:

; Max number of indicators to use
max_exit_slots  = 1

3. Set the Generator always to use SL and TP. Set also the corresponding ranges

stop_loss_usage   = AlwaysUse
take_profit_usage = AlwaysUse

Please see the attached ini file as an example.
If you have another ini file, set this one last.

node .\bin\gen.js --server Premium --symbol EURUSD --period M15 --settings do-not-exit.ini

Trade Safe!

.

Post's attachments

do-not-exit.ini 1.59 kb, 7 downloads since 2024-08-24 

You don't have the permssions to download the attachments of this post.

Re: Exit at TP or SL only

Excellent work Mr Popov. Many Thanks.