Page 1 of 4

Two MA cross strategy

PostPosted: Mon Apr 02, 2012 9:45 am
by Alexander.Gettinger
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.

Re: Two MA cross strategy

PostPosted: Fri Apr 20, 2012 10:45 am
by rayjim
Is it possible to get this strategy with 1 value for the initial stop, and a different value for the trailing stop?

thanks

Re: Two MA cross strategy

PostPosted: Fri Apr 20, 2012 11:25 am
by rayjim
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

Re: Two MA cross strategy

PostPosted: Mon Apr 23, 2012 2:55 am
by Apprentice
This functionality is possible.

Re: Two MA cross strategy

PostPosted: Tue Apr 24, 2012 9:13 pm
by sergesp
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

Re: Two MA cross strategy

PostPosted: Tue Apr 24, 2012 9:38 pm
by sergesp
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

Re: Two MA cross strategy

PostPosted: Tue Apr 24, 2012 11:09 pm
by sunshine
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".

Re: Two MA cross strategy

PostPosted: Wed Apr 25, 2012 7:49 am
by sergesp
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).

Re: Two MA cross strategy

PostPosted: Fri May 04, 2012 10:39 am
by rayjim
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

Re: Two MA cross strategy

PostPosted: Sun May 06, 2012 4:18 am
by Apprentice
Your request is added to the development list.