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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        244 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        157 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        165 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        249 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        200 views
        0 likes
        Last Post CarlTrading  
        Working...
        X