Two MA cross strategy

Strategies are published here.

Moderator: admin

Two MA cross strategy

Postby Alexander.Gettinger » Mon Apr 02, 2012 9:45 am

Strategy based on Two MA cross indicator: viewtopic.php?f=17&t=11038&p=29206#p29206

Two_MA_Cross_Strategy.PNG


Download strategy:
Two_MA_Cross_Strategy.lua
(16.78 KiB) Downloaded 1943 times


For this strategy must be installed Two MA cross indicator (Two_MA_Cross2.lua) from viewtopic.php?f=17&t=11038&p=29206#p29206

The Strategy was revised and updated on January 21, 2019.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Two MA cross strategy

Postby rayjim » Fri Apr 20, 2012 10:45 am

Is it possible to get this strategy with 1 value for the initial stop, and a different value for the trailing stop?

thanks
rayjim
 
Posts: 3
Joined: Fri Apr 20, 2012 10:42 am

Re: Two MA cross strategy

Postby rayjim » Fri Apr 20, 2012 11:25 am

Is it possible to get this strategy with the option of adding an initial stop and a trailing stop that is a different value?

Thanks
rayjim
 
Posts: 3
Joined: Fri Apr 20, 2012 10:42 am

Re: Two MA cross strategy

Postby Apprentice » Mon Apr 23, 2012 2:55 am

This functionality is possible.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Two MA cross strategy

Postby sergesp » Tue Apr 24, 2012 9:13 pm

In the post with the strategy it says:

For this strategy must be installed Two MA cross indicator (Two_MA_Cross2.lua) from viewtopic.php?f=17&t=11038&p=29206#p29206



If we want to debug this strategy with the strategy debugger how do we install the Two MA cross indicator so that the debugging process works correctly?

Thanks
sergesp
 
Posts: 18
Joined: Thu Mar 01, 2012 6:28 pm

Re: Two MA cross strategy

Postby sergesp » Tue Apr 24, 2012 9:38 pm

Also would it be possible to add a SAR indicator to the strategy to be able to check direction and value of SAR (dot) with price and the two MA values to be able to allow enter trade or Not.

I tried to add the SAR indicator but ran into code problems that I could not clear.

Thanks
sergesp
 
Posts: 18
Joined: Thu Mar 01, 2012 6:28 pm

Re: Two MA cross strategy

Postby sunshine » Tue Apr 24, 2012 11:09 pm

sergesp wrote:In the post with the strategy it says:

For this strategy must be installed Two MA cross indicator (Two_MA_Cross2.lua) from viewtopic.php?f=17&t=11038&p=29206#p29206



If we want to debug this strategy with the strategy debugger how do we install the Two MA cross indicator so that the debugging process works correctly?


To be able to debug this strategy in IndicoreSDK, you should copy the Two_MA_Cross2.lua and Averages.lua indicators to the folder "IndicoreSDK\indicators".
sunshine
 

Re: Two MA cross strategy

Postby sergesp » Wed Apr 25, 2012 7:49 am

Hi Sunshine, Thanks, very much.

Is there a way to become proficient in programming indicators / strategies in a more structured manner than the hunt and peck method I am now using such as any courses or workshop? ( have some programming experience in C for some factory machines etc).
sergesp
 
Posts: 18
Joined: Thu Mar 01, 2012 6:28 pm

Re: Two MA cross strategy

Postby rayjim » Fri May 04, 2012 10:39 am

Apprentice wrote:This functionality is possible.

Thank you Alexander. I would like to request that this functionality (the option to add separate values for the stop and trailing stop) be added.

Thanks
rayjim
 
Posts: 3
Joined: Fri Apr 20, 2012 10:42 am

Re: Two MA cross strategy

Postby Apprentice » Sun May 06, 2012 4:18 am

Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 19 guests