Work several strategies simultaneously

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

Moderator: admin

Work several strategies simultaneously

Postby Alexander.Gettinger » Fri May 20, 2011 3:22 am

For base we shall take simple strategy based on cross two simple moving average.
MA_Cross_Strategy.lua
(6.57 KiB) Downloaded 1044 times

Optimize it in tester.
Parameters of optimization:
Instrument: EUS/USD,
Chart: M15,
Range: 12/03/2010 - 02/25/2011,
Min. periods for MA: 20,
Max. periods for MA: 200,
Step: 20.

As main criterion to optimization I have chosen parameter P/F=Profit/Max.fall equity.
After optimization 5 best sets look like:
Pic3.png

As changed parameters if we shall combine several strategies with different periods?
For this I wrote a strategy that can simultaneously work with three pairs of moving averages.
MA_Cross_Strategy3.lua
(8.53 KiB) Downloaded 1039 times

Period1 and Period2 correspond first MA, Period3, Period4 - second MA and Period5, Period6 - third MA.
If Period1=Period2 or Period3=Period4 or Period5=Period6 corresponding MA is not used.
Set Period1=80 and Period2=100 further optimization.
For 2 pairs MA the best parameters follows:
Pic4.png

Continuing in the same way.
After the third stage of optimization:
Pic5.png
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Work several strategies simultaneously

Postby Alexander.Gettinger » Fri May 20, 2011 3:27 am

On this picture draw profit and max.fall equity for all stages of optimization.
Pic1.png


And parameter P/F:
Pic2.png


As a result we were able to increase profits without increasing fall equity.
It is obvious that the simultaneous use of several strategies to improve the quality of trade.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Work several strategies simultaneously

Postby nookie » Sat Jul 16, 2011 3:43 am

Hey Alexander,

I have 2 / 3 strategies I want to see a result when all of them agrees - if all 3 are long , go long, if 1 disagrees - do nothing. How and is this possible to be done or a new strategy has to be built ?

Cheers

Nookie
nookie
FXCodeBase: Graduate
 
Posts: 203
Joined: Tue May 24, 2011 12:50 pm

Re: Work several strategies simultaneously

Postby sunshine » Sun Jul 17, 2011 11:14 pm

A new strategy must be created. Please post a request with details in the Indicator and Signal Requests thread.
sunshine
 

Re: Work several strategies simultaneously

Postby nookie » Mon Jul 18, 2011 3:11 am

Would have been great if there was some kind of "strategies filter" in TS II, so it would be if 2 strategies agree then a signal is created. Do you think is possible to happen in next release of TS or no clue ?

Cheers
nookie
FXCodeBase: Graduate
 
Posts: 203
Joined: Tue May 24, 2011 12:50 pm

Re: Work several strategies simultaneously

Postby sunshine » Tue Jul 19, 2011 10:18 am

nookie wrote:Would have been great if there was some kind of "strategies filter" in TS II, so it would be if 2 strategies agree then a signal is created. Do you think is possible to happen in next release of TS or no clue ?

Cheers


I believe that strategy wizard would help you with this. You would just add conditions of the two base strategies when creating a new one.
sunshine
 

Re: Work several strategies simultaneously

Postby nookie » Wed Jul 20, 2011 3:24 am

Hi sunshine,

Where can I find this "strategy wizard" tool ? No sign of it in Marketscope help or in a search on the web... any hint ?

Cheers

Nookie
nookie
FXCodeBase: Graduate
 
Posts: 203
Joined: Tue May 24, 2011 12:50 pm

Re: Work several strategies simultaneously

Postby sunshine » Wed Jul 20, 2011 11:29 pm

It has not been released yet. Developers have started working on it.
sunshine
 

Re: Work several strategies simultaneously

Postby nookie » Thu Jul 21, 2011 12:55 am

Wow, great news, I am already waiting for its first realease :D
nookie
FXCodeBase: Graduate
 
Posts: 203
Joined: Tue May 24, 2011 12:50 pm

Re: Work several strategies simultaneously

Postby rjm354 » Fri Feb 07, 2014 10:05 pm

This is a great strategy, Thanks, Great Work !!

Sometimes the strategy opens several positions on the same pair . For example it opened 3 nzdusd at the same time.
Is there a way to give me the option or choice to limit the strategy to opening only 1 position on each pair ?

Thanks
rjm354
 
Posts: 5
Joined: Thu Nov 22, 2012 12:47 pm

Next

Return to Discussions

Who is online

Users browsing this forum: No registered users and 2 guests