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

Chaged this but won't change

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

    Chaged this but won't change

    private Color supportColor = Color.Magenta;
    private Color resistanceColor = Color.Blue;
    private Color currDotColor;
    private double currDotValue;
    private string dotText = "2l";
    //private Font pfont = new Font("Arial", 15, FontStyle.Bold, GraphicsUnit.Point);
    private Font pfont = new Font("Wingdings", 6, FontStyle.Bold, GraphicsUnit.Point);
    private int yPixels = 1;
    private bool drawingSupport = true;

    // private BoolSeries Trend;
    // private int DaysInTrend;
    // private DataSeries ITrend;
    // private DataSeries Trendline;
    #endregion

    #region Variables
    // Wizard generated variables
    private double alpha = 0.07; // Default setting for Alpha
    private bool drawSupportResistance = true;
    private SineWaveMethodEnum method = SineWaveMethodEnum.CyberneticsAnalysis;
    private SmoothMethodEnum smoothMethod = SmoothMethodEnum.WMA;
    private int priceSmoothPeriod = 6;
    private int jurikJMAPhase = 0;

    I changed two items in the script for the SineWave code (marked in bold) and saved it, and then restatred Ninja. It worked the first time where it made the dots bigger (windings and locked in the smoothing I wanted (it wont change permanently in the actual indicator) but I since added other new indicators, which I have since removed

    The problem is that I can't get the dots size and the smoothing time to lock in even after restarting Ninja now, wheras it worked before. What's going on? How can get the indicator back to the way I wanted it?

    #2
    Hello,

    Thanks for the note.

    In the attached code I do not see anything wrong here that would do this. I suspect another area of the code. Please send in your full code to support at ninjatrader dot com ATTN: brett and reference this forum post for me to look into this.\



    I look forward to assisting you further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Tim-c, Today, 03:54 AM
    0 responses
    3 views
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by FrancisMorro, Today, 03:24 AM
    0 responses
    2 views
    0 likes
    Last Post FrancisMorro  
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,771 views
    0 likes
    Last Post Leafcutter  
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    31 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    945 views
    0 likes
    Last Post spwizard  
    Working...
    X