Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Edit Strategy" Menu - Adjustable brush attributes

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

    "Edit Strategy" Menu - Adjustable brush attributes

    The following is all of the pertinent info that I have added to a strategy which adds a particular plot line.

    What must I add to this script to be able to change brush attributes in "Edit Strategy" menu? I can see the brush attributes but they are grayed out and I am not able to adjust them.

    Thanks,

    Code:
               AddPlot(Brushes.MediumSeaGreen, "MyPlot1");
    
    else if (State == State.DataLoaded)
                {​
    
                    EMA5                = EMA(Close, 35);
                    RMA1                = RMA(TrueRange(1), 35);​
                }​
    
            protected override void OnBarUpdate()
            {    
                if (BarsInProgress != 0)
                    return;
    
                if (CurrentBars[0] < 20)
                    return;
    
                double rma0            = RMA1[0];
                double ema0            = EMA5[0];
    
                if (CurrentBar == 0)
                    MyPlot1[0] = Median[0];
                else
                {
                    MyPlot1[0] = ema0 + (rma0 * 0.5);
                }​
            [Browsable(false)]
            [XmlIgnore]
            public Series<double> MyPlot1
            {
                  get { return Values[0]; }
            }
        ​
    ​

    #2
    I found that adding

    Code:
    ArePlotsConfigurable = true;

    made them editable.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X