TD Lines Strategy

Strategies are published here.

Moderator: admin

TD Lines Strategy

Postby Apprentice » Wed Aug 23, 2017 6:13 am

Color Line Up crossing over: No Action/Buy / Sell or Close Position.
Color Line Up crossing under: No Action/Buy / Sell or Close Position.

Color Line Dn crossing over: No Action/Buy / Sell or Close Position.
Color Line Dn crossing under: No Action/Buy / Sell or Close Position.

td_lines_strategy.lua
(20.51 KiB) Downloaded 1078 times



TDL.lua is available here.
viewtopic.php?f=17&t=2483&hilit=Demark+Trend+Lines
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36258
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TD Lines Strategy

Postby MC. Trend Trader » Fri Aug 25, 2017 7:08 am

Hello,

Many thanks for Strategy.
would you please add follow parameters:

Close in Opposite , Custom ID, Max open position and Time Parameters.

Thanks in advance
MC. Trend Trader
FXCodeBase: Initiate
 
Posts: 107
Joined: Sun Jul 05, 2015 12:36 am

Re: TD Lines Strategy

Postby Apprentice » Mon Aug 28, 2017 5:13 am

Your request is added to the development list, Under Id Number 3879
If someone is interested to do this task, please contact me.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36258
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TD Lines Strategy

Postby Apprentice » Tue Sep 12, 2017 3:59 am

Try this version.
td_lines_strategy.lua
(23.53 KiB) Downloaded 999 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36258
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TD Lines Strategy

Postby MC. Trend Trader » Tue Sep 12, 2017 6:30 pm

Hello Apprentice

Thanks for your work


custom id does not work.
If close on opposite, the position is closed, but no new position is opened. Strategy template build-up from this strategy is very different from the current strategies which I do not understand. Can this strategy be inserted with the current strategy template?

Best Regards
MC. Trend Trader
FXCodeBase: Initiate
 
Posts: 107
Joined: Sun Jul 05, 2015 12:36 am

Re: TD Lines Strategy

Postby MC. Trend Trader » Tue Oct 03, 2017 4:58 am

Hello Apprentice

The strategy works
Unfortunately Custom ID does not

function Prepare (name_only)
     for _, module in pairs (modules) do module: Prepare (nameOnly); end
     instance: name (profile: id () .. "(" .. instance.bid:name () .. ")");
     if name_only then return; end

I tried to insert custom ID in the line 440 but get error message.

     instance: name (profile: id () .. "(" .. instance.bid:name () .. "(" .. CustomID () .. ")");

Need your help
MC. Trend Trader
FXCodeBase: Initiate
 
Posts: 107
Joined: Sun Jul 05, 2015 12:36 am

Re: TD Lines Strategy

Postby Apprentice » Thu Oct 12, 2017 3:58 am

Thank you for your report.
Will revise it.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36258
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: TD Lines Strategy

Postby Alexander.Gettinger » Fri Oct 13, 2017 2:33 pm

Revised.

td_lines_strategy.lua
(23.57 KiB) Downloaded 929 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: TD Lines Strategy

Postby MC. Trend Trader » Fri Oct 13, 2017 4:46 pm

Hello Alexander

Thank you very much For your help.
I have one thing to edit.

Example:
If I have a buy position and the strategy change to sell signal
If close on opposite, the position is closed, but no new sell position is opened.
Can you please fix it.

Best regards
MC. Trend Trader
FXCodeBase: Initiate
 
Posts: 107
Joined: Sun Jul 05, 2015 12:36 am

Re: TD Lines Strategy

Postby MC. Trend Trader » Tue Aug 14, 2018 6:58 pm

Hello,
With this strategy, the opposite position closes the existing position but does not open a new position. It works on many other published strategies. Would be great if it works
I request of opening multi positions at the same time with different lot sizes, stops & limits for the TD Lines Strategy.


paramaters should be jncluded:

Open trade 1: Yes/No
Trade 1: lot size
Set Limit for Trade 1: Yes/No’
Limit for Trade1, in pips 30
Set Stop for Trade 1 ‘Yes/No’
Stop for Trade 1: 30
Trailing Stop order for Trade 1: ‘Yes/No’
Trailing for Trade 1, in pips 10
Breakeaven for Trade 1: ‘Yes/No’
Min Profit for Trade1 10

The Trade 1 Logic be repeated for a total of 5 positions

Best regards
MC. Trend Trader
FXCodeBase: Initiate
 
Posts: 107
Joined: Sun Jul 05, 2015 12:36 am

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 7 guests