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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    58 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    133 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    73 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X