Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Super Trend For Ninja Trader Needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Elliott Wave
    replied
    Originally posted by skyland View Post
    Hello,

    do you know if there is a version of this for Trade Station

    tia,
    skyland
    I don't know if there is a TS version of SuperTrend, I think you're asking in the wrong forum . If there is a port it will be a more basic version without all the additions made by Roonius, myself and others.

    The fixed percent algorithm will be available for TS on its own as it is from TASC magazine. The previous month's trader's tips by the same author is quite similar to the original SuperTrend algorithm, so that could help you as well.

    Leave a comment:


  • skyland
    replied
    Originally posted by Elliott Wave View Post
    I added a fourth algorithm:

    - 'Fixed Percent' based on Sylvain Vervoort's 'Using Initial Stop Methods' May 2009 S&C article.

    I also added additional moving average types:

    -T3, ADVMA, ZeroLagEMA, ZeroLagTEMA, EhlersFilter and JurikJMA (you need the Jurik indicators for it to work).

    I also changed the plot style from Hash back to a line like every previous incarnation ( I found the hash hard to read).

    Hello,

    do you know if there is a version of this for Trade Station

    tia,
    skyland

    Leave a comment:


  • mpxtrader
    replied
    Originally posted by roonius View Post
    That would be different strategy with different entry logics

    It would need an "if flat" && "execute long/short" which ever comes first condition.

    If anyone is interested in adding the necessary code please do so and post it!
    I'm sure it would help a lot of those trying to learn how to play with the code outside of the Wizard especially since many seem to be interested in this thread.

    TIA

    D.

    Leave a comment:


  • roonius
    replied
    Originally posted by mpxtrader View Post
    So the " for educational purposes only" code that would be added in order to accomplish my request would be?


    TIA
    D.
    That would be different strategy with different entry logics

    Leave a comment:


  • mpxtrader
    replied
    Originally posted by roonius View Post
    "SuperTrendSimpleStrategy" is an example how to use indicator in the strategy. It is for educational purposes only.
    So the " for educational purposes only" code that would be added in order to accomplish my request would be?


    TIA
    D.

    Leave a comment:


  • roonius
    replied
    Originally posted by mpxtrader View Post
    Great stuff!

    Not being a coder and taking a look at the "SuperTrendSimpleStrategy" that was posted I've edited a start and stop time which works fine.

    However the issue I'm trying to figure out is the following.

    The supertrend looks at the historical position to determine the next trade.
    So if it's assumes the last trade was a short it will only take a long position based on the market trading through the stop price thus flipping the trend to long. All works great except suppose that the last historical trade before my start time of 9:30 am est was a long at ES 950 at say 8:30 am est ...it will never execute a long even if the market pulls back and happens to be under that price at 9:30est which would be giving it a second chance to enter the long trade. On a day like today the market opened and never looked back and it would have given you a 2nd chance to enter the long.It's a shame to miss a huge run because it needs a flip from long to short or short to long to execute the next trade.

    In other words would it not make sense to have it execute based on the first stop line or stop reversal price it hits regardless of the last historical position?

    TIA
    mpxtrader.
    "SuperTrendSimpleStrategy" is an example how to use indicator in the strategy. It is for educational purposes only.

    Leave a comment:


  • mpxtrader
    replied
    Originally posted by roonius View Post
    Cannot concentrate today...
    Fixing one part breaking another...
    My apologies.

    Great stuff!

    Not being a coder and taking a look at the "SuperTrendSimpleStrategy" that was posted I've edited a start and stop time which works fine.

    However the issue I'm trying to figure out is the following.

    The supertrend looks at the historical position to determine the next trade.
    So if it's assumes the last trade was a short it will only take a long position based on the market trading through the stop price thus flipping the trend to long. All works great except suppose that the last historical trade before my start time of 9:30 am est was a long at ES 950 at say 8:30 am est ...it will never execute a long even if the market pulls back and happens to be under that price at 9:30est which would be giving it a second chance to enter the long trade. On a day like today the market opened and never looked back and it would have given you a 2nd chance to enter the long.It's a shame to miss a huge run because it needs a flip from long to short or short to long to execute the next trade.

    In other words would it not make sense to have it execute based on the first stop line or stop reversal price it hits regardless of the last historical position?

    TIA
    mpxtrader.
    Last edited by mpxtrader; 07-23-2009, 07:59 PM.

    Leave a comment:


  • tchapman
    replied
    Flat and Choppy Markets

    I've spent alot of time working with this indicator and have got it reacting nicely when the market makes a good move but things get ugly during consolidation periods.

    I've been working on some ways to filter out the 'chop' but could use some suggestions from the more experienced traders out there;

    Ideas so far are;

    Filtering trades based on;
    * Only trade in direction of EMA(200) -- With this you missed out on as many good trades as filtered out bad (in terms of $$)
    * Using RSI as a secondary signal confirmation -- Idea behind this was to get into a signal early.
    * Using a trend weighted moving average like ADXVMA -- This works well for trailing a moving market and gets in out and quickly but struggles when things go sideways. Still playing with this but could be the most promising so far.
    * Using a measure of slope of the SuperTrend's MA to indicate the strength of the current market trend.
    * Multiple Time Frame -- Using SuperTrend on multiple timeframes to indicate when a signal may be coming up on a higher timeframe. For this i use a colour coded market analyzer with email and SMS alerts.

    I was thinking we could add a third 'neutral' trend category eg Black when certain criteria are met for a neutral market.

    I can do the coding if someone can help with the logic, because at the moment i'm going cross eyed with candle sticks burnt on the back of my retina

    Tim

    p.s I'm trading FOREX
    Last edited by tchapman; 07-15-2009, 01:37 AM.

    Leave a comment:


  • volpiemanuele
    replied
    info

    If I want to use it in automated strategy how can set in order to have signal for entry long or short....what's the best frame and config in order to operate with ES ?

    Tanks




    Originally posted by roonius View Post
    Here is an improved and modified version of SuperTrend.

    It has new features:

    3 modes: ATR, Adaptive, DualThrust.

    Price is selectable now (Close, high, median... etc.)

    SuperTrend can follow the price or selectable moving average of the price.
    If you don't need smoothing, select smoothing period to 1.

    8 types of MA are built in. If you need additional, I bet you will figure out how to modify TSSuperTrend to fit your needs.

    Note: If using DualThrust mode, Period has a big impact. If period is smaller, Supertrend follows closer (more false signals too).

    Big thanks to Elliott Wave, lgarcia, ctrlbrk and others.

    roonius

    Leave a comment:


  • MXASJ
    replied
    Originally posted by tortexal View Post
    you have to locate and install the following indicators from the forum first
    DynamicSR
    SuperTrend
    CCI_Histogram
    ElliotOscillator

    then compile the code
    I get that, its just that there are now a few different versions of "supertrend" in this thread... one called TSSupertrend, and one called supertrend. Any of TSSupertrend ones won't work with your code. Seeing "supertrend" in your code I've loaded Eliot Wave's version, but I still get the arguments error mesage when compiling. Can you give me the message # in this thread of the "supertrend" indicator you are using and I'll take it from there? Once sucessful I'll upload it here for the benefit of masses. Thanks!

    Leave a comment:


  • tortexal
    replied
    you have to locate and install the following indicators from the forum first
    DynamicSR
    SuperTrend
    CCI_Histogram
    ElliotOscillator

    then compile the code

    Leave a comment:


  • MXASJ
    replied
    Originally posted by tortexal View Post
    this will work, long and short.

    #region Using declarations
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Drawing.Drawing2D;
    using System.Xml.Serialization;
    using NinjaTrader.Cbi;
    using NinjaTrader.Data;
    using NinjaTrader.Indicator;
    using NinjaTrader.Gui.Chart;
    using NinjaTrader.Strategy;
    #endregion

    // This namespace holds all strategies and is required. Do not change it.
    namespace NinjaTrader.Strategy
    {
    /// <summary>
    /// Enter the description of your strategy here
    /// </summary>
    [Description("Enter the description of your strategy here")]
    public class testSuperTrend : Strategy
    {
    #region Variables

    #endregion

    /// <summary>
    /// This method is used to configure the strategy and is called once before any strategy method is called.
    /// </summary>
    protected override void Initialize()
    {
    CalculateOnBarClose = true;


    Add(DynamicSR(21));
    Add(SuperTrend(10, 3));
    Add(CCI_Histogram(14)) ;
    Add(ElliotOscillator(5, 35));
    }

    /// <summary>
    /// Called on each bar update event (incoming tick)
    /// </summary>
    protected override void OnBarUpdate()
    {
    //go long
    if
    (Close[0] > DynamicSR(21).Resistance[0] && Close[0] > SuperTrend(10, 3).UpTrend[0]
    && CCI_Histogram(14).CCIoversold[0] > 0 && ElliotOscillator(5, 34).Uptrend[0] > 0)
    {
    EnterLong(DefaultQuantity, "");
    }

    //stop if closes under dynamic S
    if (Position.MarketPosition == MarketPosition.Long && Close[0] < DynamicSR(21).Support[0])
    { ExitLong();
    }

    //go short if everything indicated short
    if (Close[0] < DynamicSR(21).Support[0] && Close[0] < SuperTrend(10, 3).DownTrend[0]
    && CCI_Histogram(14).CCIoversold[0] < 0 && ElliotOscillator(5, 34).Uptrend[0] < 0)
    {
    EnterShort();
    }

    //cover short if close above dynamic R
    if (Position.MarketPosition == MarketPosition.Short && Close[0] > DynamicSR(21).Resistance[0])
    {
    ExitShort();
    }

    }

    #region Properties

    #endregion
    }
    }
    I'm new to this so pardon my ignorance. I can't get that to compile. Using "SuperTrend" it doesn't know what I'm talking about, but changing that to "TSSuperTrend" clears that error. The next error is about the number of arguments TSSupertrend is looking for.

    Is there a "latest" or "common" version of the indicator in use or has this been developed down to paths? What version did you write that strategy for, tortextal?

    Getting more familiar with the NinjaScript interface today... a good thing but frustrating for my neophyte self

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    You would need to use the cs file from post # 220. It will give you the 'Signal' Plot to work with in the wizard.

    Leave a comment:


  • MoreYummy
    replied
    After I put in the folder, where do I see the "bsSignal" parameter in Strategy Wizard?

    I checked TSSuperTrend Indicator, I dont see "bsSignal"

    I just checked out the whole thread, there are more than 1 version of TSSuperTrend. Im using the first attachment at the beginning of the thread. Could it be the issue?

    I also downloaded both SuperTrend and TSSuperTrend. And the TSSuperTrend.cs file and replaced the original one from TSSuperTrend, no luck finding "bsSignal" in Strategy Wizard under either SuperTrend nor TSSuperTrend.
    Last edited by MoreYummy; 06-10-2009, 07:25 PM. Reason: added more info

    Leave a comment:


  • velocity
    replied
    C:\Documents and Settings\your user folder\My Documents\NinjaTrader 6.5\bin\Custom\Indicator

    Answer to your second question. YES

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
0 responses
662 views
0 likes
Last Post Geovanny Suaza  
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
0 responses
376 views
1 like
Last Post Geovanny Suaza  
Started by Mindset, 02-09-2026, 11:44 AM
0 responses
110 views
0 likes
Last Post Mindset
by Mindset
 
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
0 responses
574 views
1 like
Last Post Geovanny Suaza  
Started by RFrosty, 01-28-2026, 06:49 PM
0 responses
580 views
1 like
Last Post RFrosty
by RFrosty
 
Working...
X