Kolier.Li logo
  • Home
  • Article
  • Example
  • Indicator
  • Trading System
  • Project
  • Glossary
  • MT4 Coding Service
  • NinjaTrader Coding Service
Home ยป Indicator

How SuperTrend.mq4 works, Logic of SuperTrend Indicator Created by Jason Robinson (jnrtrading)

  • View
  • Relationships
Submitted by kolier on Mon, 11/22/2010 - 18:17

Background Information

SuperTrend.mq4 was created by Jason Robinson (jnrtrading) and published on http://www.forex-tsd.com/221493-post1.html

SuperTrend Snapshot 1
SuperTrend Snapshot 2
SuperTrend Snapshot 3

SuperTrend.mq4 Parameters

Nbr_Periods
Default = 10. Use as ATR period settings.
Multiplier
Default = 3.0. Trend line range control, if set it larger, it will check bigger trend. Switch from 1.0 to 3.0 to compare.

Logic of SuperTrend

Values
  • ATR = Average True Range value counting with Nbr_Periods as period.
  • ATR Range = Multiplier * ATR.
  • Medium Price = (High + Low)/2.
  • Main Trend Line in Up Trend (Show in Color Lime) = Medium Price - ATR Range.
    Tricky Part: And the value will keep the same as the previous one if the current value from the formula is less than the previous one, but it will rise up if the value is larger.
  • Main Trend Line in Down Trend = Medium Price + ATR Range.
  • Main Trend Line
Conditions
  • Up Trend: Current close price is larger than the "Main Trend Line in Up Trend"
  • Down Trend: Current close price is less than the "Main Trend Line in Down Trend"

Kolier Improvement

  • Same logic, improvement implementation in code, can draw full chart and less resource consume.
  • Extended. TrendMode=0 means original logic for trend line. TrendMode=1 means new logic for trend line.

Kolier_SuperTrend_Indi TrendMode=0
Kolier_SuperTrend_Indi TrendMode=1

Detail: Kolier_SuperTrend_Indi

Classification
Category: 
Technical
Trend
MT4
SuperTend
SuperTrend.mq4
Upload
application/octet-stream iconSuperTrend.mq4
image/jpeg iconSuperTrend1.jpg
image/jpeg iconSuperTrend2.jpg
image/jpeg iconSuperTrend3.jpg
image/jpeg iconKolier_SuperTrend_Indi_TrendMode0.jpg
image/jpeg iconKolier_SuperTrend_Indi_TrendMode1.jpg
Indicators
Kolier_SuperTrend_Indi
Projects
Kolier_SuperTrend_Indi
0
Your rating: None
  • MT4
  • SuperTend
  • SuperTrend.mq4
  • Trend
  • Technical
  • Print

Search

Hot Forex Offers

Get Cash Back on All your Forex Trades, Win or Lose
Free Auto Trade Signals
Premium Trading Signals

User login

What is OpenID?
  • Sign in with Twitter
  • Log in using OpenID
  • Cancel OpenID login
Facebook Connect
Sign in using Facebook
  • Create new account
  • Request new password

Indicator Category

  • Economic
    • Direction
      • Acyclic
      • Countercyclic
      • Procyclic
    • Timing
      • Coincident
      • Lagging
      • Leading
  • Technical
    • Channel
    • Oscillator
    • Price
    • Resistance & Support
    • Time Period
    • Trend
    • Volume
  • Kolier Original
  • ABOUT
  • PRIVACY POLICY
  • Risk Disclaimer
  • CONTACT

© 2012 Kolier.Li All Right Reserved.