Page 3 of 4

Re: 2 MA Strategy

PostPosted: Tue Nov 20, 2012 1:07 pm
by amorgos89
thanks for your help

Re: 2 MA Strategy

PostPosted: Wed Dec 07, 2016 3:36 pm
by Apprentice
Strategy has been revised and updated.

Re: 2 MA Strategy

PostPosted: Tue Jul 14, 2020 10:12 am
by fallingangel
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!

Re: 2 MA Strategy

PostPosted: Wed Jul 15, 2020 10:06 am
by Apprentice
Your request is added to the development list.
Development reference 1699.

Re: 2 MA Strategy

PostPosted: Fri Jul 17, 2020 9:11 am
by fallingangel
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.

Re: 2 MA Strategy

PostPosted: Sun Jul 19, 2020 6:11 pm
by Apprentice
Your request is added to the development list.
Development reference 1739.

Re: 2 MA Strategy

PostPosted: Mon Jul 20, 2020 10:11 am
by Apprentice
2 MA Strategy.lua
(136.15 KiB) Downloaded 92 times

Try this version.

Re: 2 MA Strategy

PostPosted: Thu Jul 23, 2020 8:43 am
by fallingangel
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).

Re: 2 MA Strategy

PostPosted: Mon Jul 27, 2020 4:10 pm
by Apprentice
Your request is added to the development list.
Development reference 1786.

Re: 2 MA Strategy

PostPosted: Tue Jul 28, 2020 3:50 pm
by Apprentice
image.png

I don't have any issues