Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

TSSupertrend Marketanalyzer // Distance to price instead indicator value

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

    TSSupertrend Marketanalyzer // Distance to price instead indicator value

    Dear all,

    I have a problem which I could not solve by myself. I guess it is for a programmer very simple:

    I want to show in the Market Analyzer the difference price between the the TSSuperTrend indicator and LastPrice. Sadly it is only possible to get this without programming. In the MarketAnalyzer it is just possible to plot the indicator value.
    What I am searching for is just "TSSuperTrend value - LastPrice"

    I tried to substract the LastPrice value, bit anytime I changed something, after compiling the code was like before. Hereafter in PINK what I have tried:

    Row 433 to 457 of the standard TSSuperTrend
    -----------------
    // This namespace holds all market analyzer column definitions and is required. Do not change it.
    namespace NinjaTrader.MarketAnalyzer
    {
    publicpartialclass Column : ColumnBase
    {
    ///<summary>
    /// TSSuperTrend Indicator developed by TradingStudies.com (Vertsion 2.3)
    ///</summary>
    ///<returns></returns>
    [Gui.Design.WizardCondition("Indicator")]
    public Indicator.TSSuperTrend TSSuperTrend(int length, MovingAverageType maType, double multiplier, int smooth, SuperTrendMode stMode)
    {
    return _indicator.TSSuperTrend(Input, length, maType, multiplier, smooth, stMode) - Input;
    }
    ///<summary>
    /// TSSuperTrend Indicator developed by TradingStudies.com (Vertsion 2.3)
    ///</summary>
    ///<returns></returns>
    public Indicator.TSSuperTrend TSSuperTrend(Data.IDataSeries input, int length, MovingAverageType maType, double multiplier, int smooth, SuperTrendMode stMode)
    {
    return _indicator.TSSuperTrend(input, length, maType, multiplier, smooth, stMode) - Input;
    }
    }
    }
    -------------
    I tired this also instead of "- Input" also with "-Close"

    At row 358 is written: "NinjaScript generated code. Neither change nor remove."
    After compiling all changes are gone after this row. But I have no idea why. I am sure that someone can easily help me. I have just no idea of what to do.

    Thank a lot up front.

    Kind rgards Scaleo


    #2
    Hello Scaleo,
    Welcome to the forum and I am happy to assist you.

    Unfortunately we do not do custom NinjaScript coding.

    To develop your custom indicator/strategies you can contact any of our independent NinjaScript consultants. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:10 AM
    0 responses
    3 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    8 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    4 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X