supertrend

Formula? Is there a formula?

I trade forex

Is there a formula for adding trend lines? I don't know about it. I seen to do pretty ok without knowing it:D

If there is information about it point me there and maybe I can help

or do you mean elliot wave supercycle?
 
Is supertrend same as long-term trend? I find intermediate-term trend is more profitable. Just watch higher high/higher low or lower high/lower lows.
 

Attachments

  • supertrend.jpg
    supertrend.jpg
    58.6 KB · Views: 1,427
Last edited:
this is my own codings,not exactly as OSeban's original. But it does the job. It's in tS8.4 version it won't work in 8.3 or 8.2.
 

Attachments

  • MP_SUPERTRENDV3.ELD
    5.1 KB · Views: 748
If ELD file doesn't work, pls copy the codes and creat the indicator yourself. This is my version MP_SuperTrend indicator. There are two steps to make it work.

1. Create a function called MP_SuperTrendv3, the name of the function must remain the same as it will be called in indicator otherwise it won't work

2. Create an indicator SuperTrend. The codings for indicator is very short as most of the work is done inside the function. You can change ATR multiple to suit your risk level.

The following is the codings for indicator

// It needs a function to work.//

Inputs : Length ( 10 ) , Multiplier ( 3 ) , UpColor ( Green), Downcolor ( Red) ;

Vars: oSupertrend ( 0 ), oNote ( 0 );

Value1 = MP_SuperTrendv3 ( Length, Multiplier, oSupertrend, oNote );

If CurrentBar > Length then

BEGIN
IF oNote = 1 then Plot1(oSupertrend, "MP_SPTrendv3", UpColor );
IF oNote = 2 then Plot1(oSuperTrend, "MP_SPTrendv3", DownColor ) ;

END;
 
This is the coding for function, remember the name of the file name for function must be MP_SuperTrendv3 to make it work.

// MP_SuperTrend created by Leovirgo 2006///////
inputs: Length( numericsimple), Multiplier ( numericsimple), oSupertrend ( numericref ), oNote(numericref) ;

variables: HH ( 0 ), MyATR ( 0 ), xATR ( 0 ), Support( 0 ), SPTLine ( 0 ), LL ( 0 ),
Resistance ( 0 ), RRLine ( 0 ), HHCL ( 0 ), LLCL ( 0 ) ;

MyATR = AvgTrueRange( Length ) ;
xATR = Multiplier * MyATR ;

{ Support Line, lower channel }
HH = HighestFC ( Low, Length ) ;
Support = HH - xATR ;
SPTLine = Highest(Support, Length );

{Resistance Line, higher channel }
LL = LowestFC ( High, Length ) ;
Resistance = LL + xATR ;
RRLine = Lowest( Resistance, Length );

If Close > RRLine[1] then Begin
oSupertrend = SPTline; oNote = 1 ; End;

If Close < SPTLine[1] then Begin
oSupertrend = RRLine ; oNote = 2 ; End;

MP_SuperTrendv3 = 1 ;

//end//
 
this is my own codings,not exactly as OSeban's original. But it does the job. It's in tS8.4 version it won't work in 8.3 or 8.2.

Sorry, I still don't understand.

Does this indicator can be attached on Metatrader ?
If it is not, where can i get the MT4 version? Please help

Thanks for your help.
 
Top