Page 1 of 2

TDI TREND GAP STRATEGY

PostPosted: Fri Feb 17, 2012 4:14 am
by Apprentice
TradersDynamicIndex(Old).png


Buy
buff 4 cross over buff 5
and buff 4 < buff 2
and buff 5>buy level 50

Sell
buff 4 cross under buff5
and buff4> buff2
and buff5 < sell level 50

Exit Buy
buff 4 cross under buff 5
or buff 4 cross under buy level 50
Exit Sell
buff 4 cross over buff 5
or buff 4 cross over sell level 50

TDI Trend Gap Strategy Old.lua
(20.86 KiB) Downloaded 857 times

TDI Trend Gap Strategy.lua
(20.82 KiB) Downloaded 946 times


I wrote a strategy for both versions of the TDI indicator.
Depending on the version of the strategy you use, install adequate indicators.

Indicator can be found here.
viewtopic.php?f=17&t=2069

The Strategy was revised and updated on January 22, 2019.

Re: TDI TREND GAP STRATEGY

PostPosted: Fri Feb 17, 2012 6:25 am
by luigipg
Apprentice Hi, I'm sorry but this strategy is not really correct. Should be corrected in this way:

Buy
buff 4 cross over buff 2 and (optional) is or became > 50

Sell
buff 4 cross under buff 2 and (optional) is or became < 50

Exit Buy
buff 4 cross under buff 1 (if it had crossed before)
or cross under buff 5 or (optional) cross under level 50

Exit Sell
buff 4 cross over buff 3 (if it had crossed before)
or cross over buff 5 or (optional) cross over level 50

If you do it I would be very grateful. Thanks a lot! Luigi!!!

Re: TDI TREND GAP STRATEGY

PostPosted: Sat Feb 18, 2012 4:20 am
by Apprentice
With these changes it is a completely different strategy.
When I find time I will come back to this one.

Re: TDI TREND GAP STRATEGY

PostPosted: Sun Feb 26, 2012 11:04 am
by fundiza
Apprentice, thanks for the strategy. 8-)

I added some parameters to select the entry and exit points.
(I don't understand buff? so refer to the lines as below)

Using a (Green) RSI cross of (Red) Trade line

Entry Buy -
1) Cross anywhere
2) Cross below BL (Buy Level - typically 32)
3) Cross below CL (Centre Level - 50)

Entry Sell -
1) Cross anywhere
2) Cross above SL (Sell Level - typically 68)
3) Cross above CL (Centre Level - 50)

Exit Buy -
1) Cross anywhere
2) Cross above SL (Sell Level - typically 68)
3) Cross above CL (Centre Level - 50)

Exit Sell -
1) Cross anywhere
2) Cross below BL (Buy Level - typically 32)
3) Cross below CL (Centre Level - 50)

You can now select any of these entry and exit points to suit your strategy.

The stop and limit I tested on H1 but as I am not an experienced programmer,
I couldn't get stop and limit to work on D1

Re: TDI TREND GAP STRATEGY

PostPosted: Tue Feb 28, 2012 6:24 am
by Apprentice
I believe that you have a bug.
Lines 374, 375

It should be like this?
ExitBuyGRXSL = instance.parameters.ExitBuyGRXSL;
ExitSellGRXBL = instance.parameters.ExitSellGRXBL;

Re: TDI TREND GAP STRATEGY

PostPosted: Sun Dec 04, 2016 8:34 am
by Apprentice
Bump up.

Re: TDI TREND GAP STRATEGY

PostPosted: Sun Jan 01, 2017 8:55 pm
by jaricarr
Hi Apprentice,

In regards to the TDI Multi strategy, can you please add "Vidya" as a smoothing method for the RSI price line and and trade signal lines ?

Re: TDI TREND GAP STRATEGY

PostPosted: Sun Jan 08, 2017 6:29 am
by Apprentice
Added to TDI Trend Gap Strategy.lua

Re: TDI TREND GAP STRATEGY

PostPosted: Sun Jan 08, 2017 5:09 pm
by jaricarr
Great, can you also add it to the TDI-Multi.Lua please ?

Re: TDI TREND GAP STRATEGY

PostPosted: Thu Jan 12, 2017 4:54 am
by Apprentice
Added.