MA Strategy

Strategies are published here.

Moderator: admin

MA Strategy

Postby Apprentice » Wed Sep 26, 2012 12:00 pm

MA Strategy.png

This is a simple strategy MVA.
Trading signals are generated by a simple one Price / MA Cross.

Long - Price / Ma CrossOver.
Short - Price / Ma CrossUnder.

As a option you can use Slope or Position of second Confirmation MA as filter.

Slope
Long - Up Slope
Short-Down Slope

Position
Long - Price > MA
Short - Price <MA

MA Strategy.lua
(18.22 KiB) Downloaded 1657 times


The Strategy was revised and updated on December 18, 2018.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Strategy

Postby bfleming » Thu Sep 27, 2012 6:00 am

There doesn't seem to be a closing logic. System should close trades when price crosses back over signal MVA. Thanks!
bfleming
 
Posts: 29
Joined: Mon Aug 20, 2012 9:42 am

Re: MA Strategy

Postby Apprentice » Thu Sep 27, 2012 6:02 am

Was not specified or required.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Strategy

Postby bfleming » Thu Sep 27, 2012 7:07 am

Oh, my apologies, I assumed that it would be a given. Would it be possible to add a closing logic? Thanks!
bfleming
 
Posts: 29
Joined: Mon Aug 20, 2012 9:42 am

Re: MA Strategy

Postby Apprentice » Sat Sep 29, 2012 3:30 am

As an optional i can add dozens or hundreds of modifications.
This extends the time required for development,
so i implement things that you are ask from us.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Strategy

Postby arstechnica » Sun Sep 30, 2012 12:49 pm

Hi darling..

my regards from Naples.

I'm trying to optimize some EMA signals and strategies, starting from available signal and strategies downloaded from the forum.

I saw some strategies available as defaulf in TSII are in both .lua and .lua.rc extension.

How can I modify .rc extensions?

Regards

Salvatore
arstechnica
 
Posts: 48
Joined: Sat Sep 29, 2012 4:25 am

Re: MA Strategy

Postby bfleming » Sun Sep 30, 2012 11:55 pm

Of course, I understand that, so my apologies for not being clear. Please add the following exit logic:


Close Long on Price / Ma CrossUnder.
Close Short - Price / Ma CrossOver.

Thanks a million!
bfleming
 
Posts: 29
Joined: Mon Aug 20, 2012 9:42 am

Re: MA Strategy

Postby Apprentice » Mon Oct 01, 2012 1:58 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

Re: MA Strategy

Postby bfleming » Thu Oct 18, 2012 3:35 am

Hi, I'm just wondering where this stands on the development list. Thanks!
bfleming
 
Posts: 29
Joined: Mon Aug 20, 2012 9:42 am

Re: MA Strategy

Postby Apprentice » Wed Oct 24, 2012 3:45 am

Now you can select optional Exit.
Exit Long
Price / MA CrossUnder (Signal MA/ Confirmation MA /Any MA )
Exit Short
Price / MA CrossOver (Signal MA / Confirmation MA /Any MA )
Alsp I have added Ma Type Selection.
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: Google [Bot] and 15 guests