Work several strategies simultaneously

Section for discussions related to indicators, use of indicators, and building of trading stategies using indicators.

Moderator: admin

Re: Work several strategies simultaneously

Postby Apprentice » Sat Feb 08, 2014 2:19 am

This is possible, moreover, most strategies have some kind of limitations in this respect.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Work several strategies simultaneously

Postby moomoofx » Thu Feb 27, 2014 4:59 am

rjm354 wrote:Is there a way to give me the option or choice to limit the strategy to opening only 1 position on each pair ?


That defeats the purpose of the strategy. The whole point of having the different set of moving averages is to open up multiple trades simultaneously and smooth out the equity curve. I.e., when one loses, the other is winning.

However I have implemented this for you. Attached you'll find a new version with a PositionLimit parameter. Zero for unlimited.


Cheers,
MooMooFX
Attachments
MA_Cross_Strategy3.lua
(9.55 KiB) Downloaded 818 times
User avatar
moomoofx
FXCodeBase: Confirmed User
 
Posts: 193
Joined: Wed Oct 23, 2013 10:26 pm
Location: Okinawa, Japan. http://moomooforex.com

Previous

Return to Discussions

Who is online

Users browsing this forum: No registered users and 2 guests