Page 1 of 2

TD Lines Strategy

PostPosted: Wed Aug 23, 2017 6:13 am
by Apprentice
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

Re: TD Lines Strategy

PostPosted: Fri Aug 25, 2017 7:08 am
by MC. Trend Trader
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

Re: TD Lines Strategy

PostPosted: Mon Aug 28, 2017 5:13 am
by Apprentice
Your request is added to the development list, Under Id Number 3879
If someone is interested to do this task, please contact me.

Re: TD Lines Strategy

PostPosted: Tue Sep 12, 2017 3:59 am
by Apprentice
Try this version.
td_lines_strategy.lua
(23.53 KiB) Downloaded 999 times

Re: TD Lines Strategy

PostPosted: Tue Sep 12, 2017 6:30 pm
by MC. Trend Trader
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

Re: TD Lines Strategy

PostPosted: Tue Oct 03, 2017 4:58 am
by MC. Trend Trader
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

Re: TD Lines Strategy

PostPosted: Thu Oct 12, 2017 3:58 am
by Apprentice
Thank you for your report.
Will revise it.

Re: TD Lines Strategy

PostPosted: Fri Oct 13, 2017 2:33 pm
by Alexander.Gettinger
Revised.

td_lines_strategy.lua
(23.57 KiB) Downloaded 928 times

Re: TD Lines Strategy

PostPosted: Fri Oct 13, 2017 4:46 pm
by MC. Trend Trader
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

Re: TD Lines Strategy

PostPosted: Tue Aug 14, 2018 6:58 pm
by MC. Trend Trader
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