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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        127 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        85 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        86 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X