NexusFi: Find Your Edge


Home Menu

 





Logic that creates the SuperTrend Indicator


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one Jerryflyguy with 6 posts (6 thanks)
    2. looks_two cmacdon with 5 posts (3 thanks)
    3. looks_3 Dynamitetrader with 5 posts (5 thanks)
    4. looks_4 kareem40 with 2 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 8 thanks per post
    2. looks_two Jerryflyguy with 1 thanks per post
    3. looks_3 Dynamitetrader with 1 thanks per post
    4. looks_4 cmacdon with 0.6 thanks per post
    1. trending_up 7,497 views
    2. thumb_up 26 thanks given
    3. group 118 followers
    1. forum 26 posts
    2. attach_file 6 attachments




 
 

Logic that creates the SuperTrend Indicator

 
 swschultz 
Raleigh/NC
 
Experience: Intermediate
Platform: TOS/Sierra Charts
Broker: TDA/Infinity Futures
Trading: /ES
Posts: 6 since Jul 2013
Thanks Given: 17
Thanks Received: 5


cmacdon View Post
Swschultz
I could as I have been writing a book setting them all out. It has taken 6-years to write, 50% longer than writing my Ph.D. but when I last mentioned a solution to a previous post by someone else, I was chastised by Futures.IO as attempting to market the book on their website.
cmacdon

Ouch. Sorry to hear that. I can understand the concern about self-promotion but at the same time the info provided either directly on FIO or outside the context of the site could be helpful in pointing individuals in the right trading direction.


Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
 
 
 Jerryflyguy 
Moose Jaw Saskatchewan Canada
 
Experience: Advanced
Platform: Qtrader - CQG
Trading: Ag's
Posts: 14 since Oct 2018
Thanks Given: 2
Thanks Received: 9


kareem40 View Post
Interesting discussion @Dynamitetrader
@Jerryflyguy

I also trade using VSA and market structure. I look forward to seeing more. Do you guys have a journal?

K

kareem can you clarify what you mean by VSA?

J

Started this thread
 
 
kareem40's Avatar
 kareem40 
Dallas, TX
Legendary TradeTheBar
 
Experience: Intermediate
Platform: NT, TS
Broker: IB, Oanda
Trading: ES, MES, MNQ, MYM
Posts: 728 since May 2010
Thanks Given: 1,948
Thanks Received: 924



Jerryflyguy View Post
kareem can you clarify what you mean by VSA?

J

Volume Spread Analysis.

K

Follow me on Twitter Visit my NexusFi Trade Journal
 
 
dR5ERNCmCmUYmDcU's Avatar
 dR5ERNCmCmUYmDcU 
Tampa, FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: MES, MNQ
Posts: 45 since Nov 2020
Thanks Given: 4
Thanks Received: 5

Thanks for your info. I checked this link but it was written in "German" language, please see below the easy "ENGLISH" trsnalation. Thanks "Google-Translate".

**********************************
Supertrend is a moving stop and reversal line that is determined on the basis of volatility. The indicator can be used as a pure trend filter as well as a stop loss or a complete trading system.

** Basics

Supertrend is similar to the Parabolic Stop And Reverse System that was introduced in the 1970s. It is based on the mean value of the bars and measures the volatility as a range between high and low, taking into account any price gaps. Based on a starting value, the indicator continues in the chosen direction until the market moves strongly in the opposite direction when volatility rises. Then the indicator jumps to the starting value of the opposite direction. The indicator is programmed so that it can only change in the direction of the trend. Decreasing volatility or movements against the trend direction only cause it to continue to be drawn horizontally.

** Calculation and parameters
The calculation cannot be mapped in a formula, since in the broadest sense it is only a case of distinctions. The mean value of the current bar, from which a multiple of the volatility is subtracted, is used as the starting value for the upward trend. For the downward trend, the volatility is added. A check is now made on each bar to determine whether the newly calculated indicator value is more favorable, i.e. whether it is moving in the direction of the trend or not. If it is cheaper, it is drawn; if it is not cheaper, the old value is simply used. The result is that Super Trend never goes against its trend direction and the market breaks through at some point, which then results in a trend change.
interpretation

There are many different ways to apply Supertrend. It is common for forex traders to trade the crossovers directly. The system is then always on the market and is only supplemented by a stop and other rules to secure profits.

For analytical purposes, Supertrend can simply provide information about the prevailing price trend. If the market is above the indicator, there is an upward trend, otherwise a downward trend.

Supertrend can serve as an exit for another trading system. This means that open positions are closed when the trend of the indicator changes. However, it should be noted here that the position openings are adjusted to the indicator, or that there is special treatment for situations where the indicator and position have not followed the same trend since the opening.

** Parameter description
Period - calculation length of the average volatility
Factor - multiplier that determines the distance between the indicator and the market

** sources
https://www.vtad.de/sites/files/forschung/Schmidt_2011_Evaluation_of_params_supertrend_daily_VTAD.pdf

Logic:

BASIC UPPERBAND = (HIGH + LOW) / 2 + Multiplier * ATR
BASIC LOWERBAND = (HIGH + LOW) / 2 - Multiplier * ATR

FINAL UPPERBAND = IF( (Current BASICUPPERBAND < Previous FINAL UPPERBAND) and (Previous Close > Previous FINAL UPPERBAND)) THEN (Current BASIC UPPERBAND) ELSE Previous FINALUPPERBAND)

FINAL LOWERBAND = IF( (Current BASIC LOWERBAND > Previous FINAL LOWERBAND) and (Previous Close < Previous FINAL LOWERBAND)) THEN (Current BASIC LOWERBAND) ELSE Previous FINAL LOWERBAND)

SUPERTREND = IF(Current Close <= Current FINAL UPPERBAND ) THEN Current FINAL UPPERBAND ELSE Current FINAL LOWERBAND



**********************************

 
 MJMack 
New York, NY USA
 
Experience: Advanced
Platform: NinjaTrader
Trading: CL,TF,ES
Posts: 4 since Dec 2015
Thanks Given: 3
Thanks Received: 4

Hi and thanks for the detailed description. I use the TS Supertrend on NT8 and find it extremely helpful in my trading analysis. Because it's so helpful to me, I was wondering if you or anybody else has an automated version for this. I attempted to utilize the built-in automation creator function in NT8, but it is not sufficient to automate this completely in the way that I would like. Thanks.

 
 
dR5ERNCmCmUYmDcU's Avatar
 dR5ERNCmCmUYmDcU 
Tampa, FL
 
Experience: Intermediate
Platform: NinjaTrader
Trading: MES, MNQ
Posts: 45 since Nov 2020
Thanks Given: 4
Thanks Received: 5

I have created my own ninjatradets8 version Strategy that buy and sell using this indicator using a built in flag called "Signal State". you can also write your own, its is very easy. when signal state is "1" its a BUY signal and when it is "-1" its a SELL signal.

Let me know, if you need any further help. Thanks

Thanked by:
 
 cmacdon 
Brisbane Queensland Australia
 
Experience: Advanced
Platform: Ninja Bullcharts
Trading: Stocks
Posts: 15 since Dec 2014
Thanks Given: 0
Thanks Received: 20

Here is my version adapting Wyckoff's method and also the Tom Williams VSA interpretations of VSA.

After years of testing various SOS and SOW markers, I ended up needing only 8 markers to identify every bar on a price chart using my amended jargon.

Signs of Strength (SOS):
SOS 1 Light demand. (LiD). (Involves light to very light volume and prices closing higher).
SOS 2 Major effort to rise closing positively. (Mj eff +ve). (Involves a high close within the range of the bar and high volume).
SOS 3 Buying pressure. (bp). (Involves high volume and prices closing higher).
SOS 4 Heavy buying pressure. (Hbp). (Involves a high close and ultra-high volume).

Signs of Weakness (SOW)
SOW1 No demand. (Nd). (Involves light to very light volume and prices closing lower)).
SOW2 Selling pressure. (sp). (Involves high volume and prices closing lower).
SOW3 Major effort to rise closing negatively. Mj eff -ve). (Involves a low close on the range of the bar and high vol-ume).
SOW 4 Heavy selling pressure. (Hsp). (Involves a low close and ultra-high volume).


Here is my bar by bar indicator with different options the first highlights the bar-by-bar SOS and SOW interpretations; the second indicator focuses on the sequential SOS and SOW markers and creates a fractal interpretation of the markets or the changes to buyer and seller behaviors. I found out later that the bar-by-bar indicator is 100% compatible with Gann's Rule of Three Method although more informative as the former interprets volume and Gann's method ignored volume.



Bar-by-bar 1


Bar-by-bar 2


 



Last Updated on February 7, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts