Page 1 of 1

OCO breakout strategy

PostPosted: Wed Apr 19, 2017 1:16 pm
by Apprentice
Based on the request.
viewtopic.php?f=27&t=64578
Breakout_Strategy.lua
(17.61 KiB) Downloaded 859 times

Breakout_Strategy with GMMACD Filter.lua
(17.76 KiB) Downloaded 760 times


The Strategy was revised and updated on January 19, 2019.

Re: OCO breakout strategy

PostPosted: Fri Apr 21, 2017 5:15 pm
by Kilgharrah
Hi, a little forgetfulness, 2 functions (exitSpecific and haveTrades) are missing so that the option works properly Mandatory Close. Regards.

Re: OCO breakout strategy

PostPosted: Thu Apr 27, 2017 6:55 am
by leeh111
hi

instead of the stop loss defined as a set amount of pips.. would It be possible to make the stop loss the high or low of the breakout levels ??.. i.e for a long trade the stop loss would be the low (ask) and for a short trade the stop loss would be the high (bid)..

also could an option be added to choose whether a buy or sell position could be opened ??

with those options this strategy would be perfect !!

Re: OCO breakout strategy

PostPosted: Wed Jan 15, 2020 5:42 am
by chai88888
bump up

Re: OCO breakout strategy

PostPosted: Mon Jan 20, 2020 9:57 am
by Apprentice
1.little forgetfulness, 2 functions (exitSpecific and haveTrades) are missing so that the option works properly Mandatory Close. Regards.

2.instead of the stop loss defined as a set amount of pips.. would It be possible to make the stop loss the high or low of the breakout levels ??.. i.e for a long trade the stop loss would be the low (ask) and for a short trade the stop loss would be the high (bid)..

also could an option be added to choose whether a buy or sell position could be opened ??

with those options this strategy would be perfect !!


I didn't manage to get any results from this strategy (even from the strategy before the modifications).
Breakout_Strategy.lua
(19.36 KiB) Downloaded 354 times