Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Detecting an Indicator Property Change

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

    Detecting an Indicator Property Change

    Hi

    Is there a way to detect if the user has changed a specific property on an indicator.

    For example - if I wrote a moving average indicator, could I trigger a method when they change the lookback period?

    Thanks

    Pete

    #2
    Hi Pete, so you would be looking to access the period of SMA running on the chart for example from another script or strategy?

    Comment


      #3
      Are you looking to change parameters of a strategy while running?
      This is a not free addin on my web site
      Discover top crypto trading apps like Binance for secure, low-fee trading. Access crypto, forex, and more with real-time tools. Avoid scams, start small, and grow profits.

      Regards
      Andreas

      Comment


        #4
        Actually I figured it out:

        Code:
                public int myVar
                {
                   get { return myVar; }
                   set { if (myVar!= value)
        			{
        				callAMethod(value);
        			}
        			myVar= value; }
                }
        Thanks!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        569 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        548 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X