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 121 times



TDL.lua is available here.
viewtopic.php?f=17&t=2483&hilit=Demark+Trend+Lines
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17511
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
 
Posts: 31
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: 17511
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 67 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17511
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
 
Posts: 31
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
 
Posts: 31
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: 17511
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 40 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 2936
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
 
Posts: 31
Joined: Sun Jul 05, 2015 12:36 am


Return to Custom Strategies

Who is online

Users browsing this forum: Exabot [Bot] and 8 guests