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
Comment