FXCM Forex Trading

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 119 times

Breakout_Strategy with GMMACD Filter.lua
(17.76 KiB) Downloaded 102 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17153
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


Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 4 guests