Trendmagic signal/strategy [Upd Oct, 20]

Strategies are published here.

Moderator: admin

Trendmagic signal/strategy [Upd Oct, 20]

Postby Nikolay.Gekht » Tue Oct 12, 2010 2:33 pm

Update Oct, 20. Trend Magic Direction strategy (second post below) is updated. Now the strategy does not create the first position until the signal is switched from opposite direction, i.e. if the current condition are buy it will wait until the first sell after buy appears.

There is a simple basic signal/strategy which works on Trend Magic indicator.

The strategy enters long which trend magic turns green and enters short when trend magic turns red.

Options:

1) The strategy can show signals (alerts, sounds (including recurrent), emails) as well as can trade. By default trading is disabled. To let the strategy trade please go to the "Trading Parameters" and switch "AllowTrading" parameter to "On".

2) In trading parameters you can also switch on and configure stop and limit orders.

3) You can also configure "auto lot size". In case the previous trade wasn't profitable, the strategy will increase the next lot by the specified amount unless the maximum amount is reached. In case trade was profitable - the strategy will reset the trade size. Important note! In case trade is closed by stop or limit order and more than 30 trades was closed after that moment, the strategy cannot detect whether the trade was closed with profit or not. This is a limitation of the trading platform which shows only 30 last trades.

Important note! The strategy is very sensitive for flat market! Pay attention on the highlighted areas where the strategy suffers significant loss
Personally I don't recommend to use the strategy to trade unless you explicitly understand all pros and contras of trend magic indicator. This is rather useful for testing trend magic indicator and to use it just as signal, without no trading features switched on.

trendmagic1.png


Please, do not forget to download and install new version of Trend Magic indicator:
viewtopic.php?f=17&t=2374

Download strategy:
TrendMagic_Strategy.lua
(10.72 KiB) Downloaded 1309 times
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Version 2

Postby Nikolay.Gekht » Mon Oct 18, 2010 12:17 pm

Another version of the Trendmagic strategy. Now it trades when the direction of the line is changed rather than when the color is changed. This version is a bit less sensitive to the flats than previous:

trend_magic_dir.png


download:
TrendMagic_Strategy_Dir.lua
(11.84 KiB) Downloaded 1297 times


Please, do not forget to download and install new version of Trend Magic indicator:
viewtopic.php?f=17&t=2374

p.s. I also fixed alert text in original strategy as well. It tells "short" opening "long" and vise versa.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Trendmagic signal/strategy [Upd Oct, 20]

Postby Nikolay.Gekht » Wed Oct 20, 2010 4:54 pm

Update Oct, 20. Trend Magic Direction strategy (second post below) is updated. Now the strategy does not create the first position until the signal is switched from opposite direction, i.e. if the current condition are buy it will wait until the first sell after buy appears.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Trendmagic signal/strategy [Upd Oct, 20]

Postby borsaty » Thu Oct 21, 2010 12:08 pm

Dear
Thanks for you effort
but you can add another filter for trading this strategy like ... it only take the position in the direction of H4 to this Indicator i.e ( only buy in 15m while the trend magic in h4 is green and filter the sell order and only sell order in case the indicator is red in h4
Dr.Selim Ahmed
+20110163707
User avatar
borsaty
 
Posts: 9
Joined: Mon Oct 11, 2010 12:31 pm

Re: Trendmagic signal/strategy [Upd Oct, 20]

Postby Ancient » Tue Jan 11, 2011 8:20 am

The Strategy Opens Opposite Positions to those Informed on by the Alert Event.

i.e. Alert Signal Informs; Enter Short
................. Strategy Enters Long
Ancient
 
Posts: 45
Joined: Thu Nov 04, 2010 6:55 pm

Re: Trendmagic signal/strategy [Upd Oct, 20]

Postby spinemaligna » Sun Jan 16, 2011 9:01 pm

Hi all,

Is it possible to incorporate a filter so that the strategy monitors trendmagic colour and enters a trade when the SAR colour changes to match it. i.e Trendmagic is red, SAR is green, when SAR changes to red a sell position is opened.
Is it also possible to arrange that when the trade is opened a take profit limit is placed and the SAR Stop strategy is opened.

I have been paper trading this idea manually on 15 minute candles and it seems as if it could be profitable.

Thanks in advance,

Ross
spinemaligna
FXCodeBase: Initiate
 
Posts: 112
Joined: Sun Sep 12, 2010 2:42 am

Re: Trendmagic signal/strategy [Upd Oct, 20]

Postby ancient-school » Mon Jan 17, 2011 9:59 am

Can someone tell me whether this Strategy trades; or only Alerts to trades?

I understood that it does both? However the Strategy, Alerts to trades that are signalled, but Trades Signalled are not opened although Allow Trading is set to "Yes"? More, as I just noticed a trade opened, it seems to be Opening Trades Selectively? i.e. Some Alerts signalled are also traded... Other Alerts are not Traded? So what is this Strategy supposed to be doing?

I am running Trade Station version 01.10 010311, updated from previous installation 082610 with patch installed... Do I maybe need to remove this patch?

Any info is most welcome....
Going for it is more important than winning or losing!
User avatar
ancient-school
 
Posts: 20
Joined: Tue Apr 13, 2010 1:56 pm

Re: Trendmagic signal/strategy [Upd Oct, 20]

Postby ancient-school » Mon Jan 17, 2011 2:42 pm

First, Addendum to Previous Comment: Strategy is Opening Opening Positions To Continue:

Nikolay,

With Reference too:
Nikolay.Gekht wrote:Update Oct, 20. Trend Magic Direction strategy (second post below) is updated. Now the strategy does not create the first position until the signal is switched from opposite direction, i.e. if the current condition are buy it will wait until the first sell after buy appears.


Does it still show the signal for the first position created? As I have noticed there are more Alerts than Positions opened! If this is the case, can this be corrected?
Going for it is more important than winning or losing!
User avatar
ancient-school
 
Posts: 20
Joined: Tue Apr 13, 2010 1:56 pm

Re: Trendmagic signal/strategy [Upd Oct, 20]

Postby d10gen3 » Wed Jan 26, 2011 8:24 pm

I have a problem running TrendMagic

Whenever I try to "Allow Strategy to Trade" in backtesting, I get an error message:
[string "TrendMagic Strategy Dir.lua"]:99: Unsupported

Anyone knows why is this happening? (I have the latest version of Marketscope as well as the latest trading station)

Thanks,
Andres
d10gen3
 
Posts: 11
Joined: Wed Jan 26, 2011 8:18 pm

Re: Trendmagic signal/strategy [Upd Oct, 20]

Postby alepan72 » Thu Jan 27, 2011 7:39 am

d10gen3 wrote:I have a problem running TrendMagic

Whenever I try to "Allow Strategy to Trade" in backtesting, I get an error message:
[string "TrendMagic Strategy Dir.lua"]:99: Unsupported

Anyone knows why is this happening? (I have the latest version of Marketscope as well as the latest trading station)

Thanks,
Andres


Hi friend,
I sent you PM. ;)
Image
User avatar
alepan72
 
Posts: 59
Joined: Wed Oct 27, 2010 4:19 am

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 24 guests