Page 1 of 1

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 94 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 43 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 17 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