Page 1 of 2

Two Line SuperTrend Strategy

PostPosted: Fri Sep 23, 2016 4:38 am
by Apprentice
EURUSD m1 (09-23-2016 1041).png


Open Long
Both time frames are in up trend
Open Short
Both time frames are in down trend

Optinal Exit
If two time frames disagree.

If "Use Trend Filter" is off, second time frame filter will not be used.
If "Only on subtrend change" is on, trade will be executed,
only if we have a change in the indication on smaller time frame.

Two Line SuperTrend Strategy.lua
(21.7 KiB) Downloaded 1505 times

SuperTrend.lua is available here.
viewtopic.php?f=17&t=3102&hilit=SUPERTREND

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

Re: Two Line SuperTrend Strategy

PostPosted: Fri Sep 23, 2016 5:55 am
by colajam1979
Good morning,
You sure are quick with your work. Thanks for this, i have it running in demo atm hoping it will work as expected 8-)

Re: Two Line SuperTrend Strategy

PostPosted: Fri Sep 23, 2016 10:15 am
by colajam1979
Hello Apprentice.
I have run this in my demo account today and it works well enough for me but Can you modify it one more time so that a first position is opened sooner?

If the 5 minute is the trend line and is long when the 1 minute is short the short will not be opened - perfect.

if the 1 minute short continues changing the 5 minute trend to short can a short position be entered?

all other rules remain the same

see image below.

thanks again

Re: Two Line SuperTrend Strategy

PostPosted: Tue Oct 04, 2016 2:28 pm
by Norm123
Hi Apprentice,

Many thanks for your content on here. Some really great stuff. I have been testing the 'two line supertrend' with different parameters etc. Almost a really good strategy for what I want.

Is it possible to add a function so that providing the two lines are in same direction, if I am using Line 1 as the shorter time period 'activating' line and it closes on opposite, the strategy keeps opening a new trade at the next trigger point in the same direction?

At the moment, I am using Line 1 as the shorter 'activation' line and Line 2 as the longer term trend. The stategy is only activating a trade at the first trigger point but then not closing on opposite and not activating subsequent trades even when both lines are in same direction.

Thanks!

Re: Two Line SuperTrend Strategy

PostPosted: Sat Oct 08, 2016 4:09 am
by Norm123
Hi Apprentice,

Having playing and fiddled with the parameters etc I have got it working.

Is it possible to add a Bollinger band filter to this strategy? In a long, when the price crosses through the upper Bollinger band, the trade closes and in a short, when the price crosses the lower band the trade closes?

Dan

Re: Two Line SuperTrend Strategy

PostPosted: Wed Oct 12, 2016 5:26 am
by Apprentice
Bug Fixed.
Please Re-Download.

Re: Two Line SuperTrend Strategy

PostPosted: Wed Oct 12, 2016 5:56 am
by Apprentice
At the moment, I am using Line 1 as the shorter 'activation' line and Line 2 as the longer term trend. The stategy is only activating a trade at the first trigger point but then not closing on opposite and not activating subsequent trades even when both lines are in same direction.


Set "Only on subtrend change" to no

Re: Two Line SuperTrend Strategy

PostPosted: Sat Oct 29, 2016 6:06 pm
by JOKER83
can you make close parameter to the bigger supertrend

Re: Two Line SuperTrend Strategy

PostPosted: Sun Dec 18, 2016 9:10 am
by Apprentice
Strategy was revised and updated.

Re: Two Line SuperTrend Strategy

PostPosted: Fri Jan 13, 2017 5:54 am
by josediaz
hi

i have installed your strategy, but there are not buy or sell

allow startegy to trade = true

thank you

regards