2 MA Strategy

Strategies are published here.

Re: 2 MA Strategy

amorgos89

Posts: 30
Joined: Mon Oct 31, 2011 5:18 am

Re: 2 MA Strategy

Strategy has been revised and updated.

Apprentice
FXCodeBase: Confirmed User

Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 MA Strategy

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

Development reference 1699.

Apprentice
FXCodeBase: Confirmed User

Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 MA Strategy

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
fallingangel

Posts: 12
Joined: Thu Jul 09, 2020 3:07 am

Re: 2 MA Strategy

Development reference 1739.

Apprentice
FXCodeBase: Confirmed User

Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 MA Strategy

2 MA Strategy.lua

Try this version.

Apprentice
FXCodeBase: Confirmed User

Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 MA Strategy

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

Development reference 1786.

Apprentice
FXCodeBase: Confirmed User

Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: 2 MA Strategy

I don't have any issues

Apprentice
FXCodeBase: Confirmed User

Posts: 27289
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext