OCO breakout strategy

Strategies are published here.

Moderator: admin

OCO breakout strategy

Postby Apprentice » Wed Apr 19, 2017 1:16 pm

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: OCO breakout strategy

Postby Kilgharrah » Fri Apr 21, 2017 5:15 pm

Hi, a little forgetfulness, 2 functions (exitSpecific and haveTrades) are missing so that the option works properly Mandatory Close. Regards.
User avatar
Kilgharrah
 
Posts: 46
Joined: Wed Sep 28, 2016 3:56 pm

Re: OCO breakout strategy

Postby leeh111 » Thu Apr 27, 2017 6:55 am

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 !!
leeh111
 
Posts: 13
Joined: Fri Sep 02, 2016 2:15 pm

Re: OCO breakout strategy

Postby chai88888 » Wed Jan 15, 2020 5:42 am

bump up
chai88888
FXCodeBase: Graduate
 
Posts: 228
Joined: Tue Jun 07, 2016 7:18 am

Re: OCO breakout strategy

Postby Apprentice » Mon Jan 20, 2020 9:57 am

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 353 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 21 guests