SuperTrend Band

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

SuperTrend Band

Postby Apprentice » Mon Sep 16, 2019 4:11 am

EURUSD m1 (09-16-2019 0918).png

Based on request.
viewtopic.php?f=27&t=68865

Up[i]=(H[i] + L[i] ) / 2 - (Factor*atr[i]) ;
Dn[i]=(H[i] + L[i] ) / 2 + (Factor*atr[i]) ;

TrendUp[i] = C[i-1] >TrendUp[i-1] ? Math.Max(Up[i],TrendUp[i-1]) : Up[i] ;
TrendDown[i]= C[i-1]<TrendDown[i-1]? Math.Min(Dn[i],TrendDown[i-1]) : Dn[i] ;

SuperTrend Band.lua
(4.34 KiB) Downloaded 502 times


Indicator based strategy
viewtopic.php?f=31&t=68931
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: SuperTrend Band

Postby SerifKocdemir » Mon Sep 16, 2019 4:22 am

It is really amazing.
Thank you so much.
Can ve make this strategy?
SerifKocdemir
 
Posts: 84
Joined: Thu Aug 08, 2019 11:48 am

Re: SuperTrend Band

Postby Apprentice » Mon Sep 16, 2019 5:37 am

Can you please provide strategy rules?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: SuperTrend Band

Postby SerifKocdemir » Mon Sep 16, 2019 7:11 am

LONG RULES
Price >= DN line : Open Long
UP line is Trailing Stop for Long Position


SHORT RULLES
Price <= UP line : Open Short
DN line is Trailing Stop for Short Position
SerifKocdemir
 
Posts: 84
Joined: Thu Aug 08, 2019 11:48 am



Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot] and 45 guests