Super Trend

Expand / Collapse
 

Super Trend


Super Trend Indicator


The Super Trend is a trend-following indicator. It is based on a combination of the average price rate in the current period, and a volatility indicator. The ATR indicator is most commonly used for this purpose. This indicator has 2 parameters: Period (the ATR Period), and Multiplier (ATR is multiplied by this value and added to the average price).

The values are calculated as follows:

Up = (HIGH + LOW) / 2 + Multiplier * ATR
Down =
(HIGH + LOW) / 2 - Multiplier * ATR
When the change of trend occurs, the indicator flips


Green values usually indicate an uptrend, red values indicate a downtrend. If the indicator is going flat, this is an evidence that the trend has lost its strength. This indicator also clearly shows the exit points.







Rate this Download:

Download File


SuperTrend.act SuperTrend.act (3.87 KB, 3,590 views)

User Comments

Click to subscribe to comments RSS feed...
No Member Photo by Zigo posted Wednesday, May 21, 2014
New Member with 3 recognition pointsNew Member with 3 recognition pointsNew Member with 3 recognition pointsNew Member with 3 recognition pointsNew Member with 3 recognition pointsNew Member with 3 recognition pointsNew Member with 3 recognition pointsNew Member with 3 recognition points
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
Hello,
Is there anybody who can translate this code (PRT code Named: Zigo-Trend) into the AvaFX code. Where "a" is a decimal number (f.e. 1.618) and "b" is a natural number (f.e. 10)
Indicator name "Zigo-Trend"
c1=averagetruerange[b](close)
c2=medianprice
up=c2+a*c1
dn=c2-a*c1
once trend=1
if close>up[1] then
trend=1
elsif close<dn[1] then
trend=-1
endif
if trend<0 and trend[1]>0 then
flag=1
else
flag=0
endif
if trend>0 and trend[1]<0 then
flagh=1
else
flagh=0
endif
if trend>0 and dn<dn[1] then
dn=dn[1]
else
dn=dn
endif
if trend<0 and up>up[1] then
up=up[1]
else
up=up
endif
if flag=1 then
up=c2+a*c1
endif
if flagh=1 then
dn=c2-a*c1
endif
if trend=1 then
super=dn
else
super=up
endif
return super
No Member Photo by Administrator posted Tuesday, April 05, 2011
Supreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition pointsSupreme Being with 290 recognition points
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
Dear, users!

Please, NOTE that the indicator should be added and compiled in INDICATOR editor (not the Strategy editor)

Best Regards

ActFX support team
No Member Photo by NIK posted Monday, April 04, 2011
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.

EXCEPTION
ECompileError in TPanel
CODE

MESSAGE
Compilation Error: Undeclared identifier: 'Embedded'
Line: 4, Column 18
DETAILS

CALL STACK
fx_client.exe=>FastScriptUtils.pas=>CompileScript=>52
fx_client.exe=>FastScriptUtils.pas=>CompileScript=>48
fx_client.exe=>StrategyProcessor.pas=>TStrategyProcessor.Compile=>236
fx_client.exe=>StrategyProcessor.pas=>TStrategyProcessor.Compile=>231
fx_client.exe=>StrategyProcessor.pas=>TStrategyProcessor.CompileFile=>227
fx_client.exe=>StrategyProcessor.pas=>TStrategyProcessor.CompileFile=>224
fx_client.exe=>EnabledStrategyList.pas=>TForm_EnabledStrategyList.AddStrategy=>93
fx_client.exe=>EnabledStrategyList.pas=>TForm_EnabledStrategyList.AddStrategy=>92
fx_client.exe=>EnabledStrategyList.pas=>TForm_EnabledStrategyList.Button_AddClick=>114
USER32.dll=>=>GetWindowLongW=>0
USER32.dll=>=>GetWindowLongW=>0
USER32.dll=>=>GetAppCompatFlags=>0
USER32.dll=>=>GetAppCompatFlags=>0
USER32.dll=>=>GetRawInputDeviceInfoW=>0
USER32.dll=>=>GetParent=>0
USER32.dll=>=>SendMessageW=>0
USER32.dll=>=>CallWindowProcW=>0
USER32.dll=>=>CallWindowProcW=>0
USER32.dll=>=>GetAppCompatFlags=>0
USER32.dll=>=>GetCapture=>0
USER32.dll=>=>GetCapture=>0
USER32.dll=>=>DispatchMessageW=>0
USER32.dll=>=>DispatchMessageW=>0
fx_client.exe=>Main.pas=>TForm_Main.Menu_EnabledStrategiesClick=>2999
kernel32.dll=>=>OpenEventW=>0
USER32.dll=>=>GetPropW=>0
USER32.dll=>=>GetPropW=>0
USER32.dll=>=>DispatchMessageW=>0
USER32.dll=>=>DispatchMessageW=>0
fx_client.exe=>Fx_Client.dpr=>=>399
kernel32.dll=>=>BaseThreadInitThunk=>0

No Member Photo by Nildamey posted Tuesday, February 23, 2010
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
Cet indicateur doit avoir un souci...je l'ai essayé sur plusieurs paires de devises et il s'avère faut soit les points restent rouges tout le temps même quand ça monte....doit y avoir un problème...merci d'y jeter un oeil...
No Member Photo by Visitor posted Thursday, February 11, 2010
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
There is a graph type dedicated for dots
var
   Graph: TPointGraph;

The usage is the same as other graph types:

procedure Init;
begin
   Graph := TPointGraph.Create();
end;

procedure Add(const ValueIndex: Integer);
begin
...
 Graph.AddXY(SourceGraph.XValue(ValueIndex), MyValue);
...
end;

No Member Photo by Gregor Anton posted Friday, January 22, 2010
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
I'm looking to create an indicator myself and was wondering what part of this code generates the dot?
No Member Photo by Charley posted Wednesday, December 30, 2009
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
There are several variations, although they are using the very same concept.
No Member Photo by GPY posted Friday, December 04, 2009
Sorry you don't have permission to rate comments. 0 Sorry you don't have permission to rate comments.
I have also seen an indicator with such name based on CCI


Comment require login or registration.

Details
Type: SCRIPT

Article has been viewed 20,030 times.

Options