2 MA Strategy

Strategies are published here.

Moderator: admin

Re: 2 MA Strategy

Postby amorgos89 » Tue Nov 20, 2012 1:07 pm

thanks for your help
amorgos89
 
Posts: 30
Joined: Mon Oct 31, 2011 5:18 am

Re: 2 MA Strategy

Postby Apprentice » Wed Dec 07, 2016 3:36 pm

Strategy has been revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 MA Strategy

Postby fallingangel » Tue Jul 14, 2020 10:12 am

Dear Apprentice

Can you include in this strategy the features for setting the maximum number of long & short positions, trading lots as risk percentage of equity, limit order as multiplicator of stop loss & breakeven?

All of above can be found in below strategy:

viewtopic.php?f=31&t=69984&p=134883&hilit=engulfing#p134883

Thank you!
fallingangel
 
Posts: 12
Joined: Thu Jul 09, 2020 3:07 am

Re: 2 MA Strategy

Postby Apprentice » Wed Jul 15, 2020 10:06 am

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

Re: 2 MA Strategy

Postby fallingangel » Fri Jul 17, 2020 9:11 am

Hi

Test Results

refer to 2 MA STRATEGY 1 pdf file

1a. Strategy opens position, sets stop loss & limit profit, and exhibits following message with strategy pausing in the dashboard (for both long and short):

C:/Program Files (x86)/Candleworks/FXTS2/Strategies/Custom/2 MA Strategy.lua:492: attempt to call method 'CreateController' (a nil value)

I manually restarted the strategy, breakeven & partial close on breakeven did not work.

1b. Same settings as per 1a, with only difference turned partial close on breakeven to NO. Same behaviour as per 1a.

2a. Same settings as per 1a, with only difference in lots (used % risk of equity, value 2), when long condition was in place, it did not open position, and exhibited following message:

Open order failed: The Quantity must be a positive integer number

With short conditions, it behaved as per 1a case.

2b. Same settings as per 1a, with only differences in lots (used % risk of equity, value 2) and breakeven set to NO. Strategy behaved as per 2a.
Attachments
2 MA STRATEGY 1.pdf
(206.33 KiB) Downloaded 90 times
fallingangel
 
Posts: 12
Joined: Thu Jul 09, 2020 3:07 am

Re: 2 MA Strategy

Postby Apprentice » Sun Jul 19, 2020 6:11 pm

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

Re: 2 MA Strategy

Postby Apprentice » Mon Jul 20, 2020 10:11 am

2 MA Strategy.lua
(136.15 KiB) Downloaded 92 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 MA Strategy

Postby fallingangel » Thu Jul 23, 2020 8:43 am

Hi Apprentice

Breakeven & partial close at breakeven works like a charm!

risk % of equity exhibits same bug as before with long conditions (did not test with short conditions).
fallingangel
 
Posts: 12
Joined: Thu Jul 09, 2020 3:07 am

Re: 2 MA Strategy

Postby Apprentice » Mon Jul 27, 2020 4:10 pm

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

Re: 2 MA Strategy

Postby Apprentice » Tue Jul 28, 2020 3:50 pm

image.png

I don't have any issues
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: Alexa [Bot] and 5 guests