In the ninjascript editor, I used "save as" to make a copy of the "PriceLine" indicator. I got a message about changing the name in OnStateChange() to prevent duplicate indicators showing in the indicator drop list.
Here's how the copied indicator file "PriceLineTemp" appears. Can you show me an example of what to change in order to have Price Line Temp show in my indicator list? I currently have 2 Price Line indicators listed in the drop list. I tried to edit the areas in bold red text below. I got a message about NinjaTrader.Custom.Resource does not have a definition for that new name..
namespace NinjaTrader.NinjaScript.Indicators
{
/// <summary>
/// Displays ask, bid, and/or last lines on the chart.
/// </summary>
public class PriceLineTemp : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = Custom.Resource.NinjaScriptIndicatorDescriptionPriceLineTemp;
Name = Custom.Resource.NinjaScriptIndicatorNamePriceLineTemp;
Calculate = Calculate.OnPriceChange;
IsOverlay = true;
ShowTransparentPlotsInDataBox = false;
DrawOnPricePanel = true;
IsSuspendedWhileInactive = true;
ShowAskLine = false;
ShowBidLine = false;
ShowLastLine = true;
AskLineLength = 100;
BidLineLength = 100;
LastLineLength = 100;
AskStroke = new Stroke(Brushes.DarkGreen, DashStyleHelper.Dash, 1);
BidStroke = new Stroke(Brushes.Blue, DashStyleHelper.Dash, 1);
LastStroke = new Stroke(Brushes.Yellow, DashStyleHelper.Dash, 1);
}
Comment