Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Share variables between 2 or more indicators

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

    #16
    They are not really any indicators that plots any line or bar, just get some parameters, performs some calculations and the result is shown in the data box.

    In your solution, Indicator1 should receive parameters from Indicator2, due to, Indicator1 depends on Indicator2.

    Now, for 2 indicators work independently, both should request the same parameters.

    What I wanted to do is the following:

    - 2 indicators: Indicator2 depends of results of Indicator1 .
    - Indicator1 has its own parameters and indicator2 other additional parameters.
    - Indicator2 use data and results from Indicator1 to calculate their own results.

    I have only one class, it requests all the necessary parameters needed to calculate the results.

    I Only wanted divide in 2 indicators to give user a choice to show or not indicator2.

    Thank you.
    Last edited by Federico; 07-12-2011, 04:05 AM.

    Comment


      #17
      I must not be communicating properly.

      In your solution, Indicator1 should receive parameters from Indicator2, due to, Indicator1 depends on Indicator2.
      No. Indicator2 depends on Indicator1.

      Now, for 2 indicators work independently, both should request the same parameters.
      Not necessarily. Each requests the parameters that it needs. The calling indicator passes correct parameters to the called indicator.

      What I wanted to do is the following:

      - 2 indicators: Indicator2 depends of results of Indicator1 .
      - Indicator1 has its own parameters and indicator2 other additional parameters.
      - Indicator2 use data and results from Indicator1 to calculate their own results.
      That is exactly what I described.

      I have only one class, it requests all the necessary parameters needed to calculate the results.
      I guess the point is moot then.

      I Only wanted divide in 2 indicators to give user a choice to show or not indicator2.
      Not sure I understand this objective, but there are many ways to hide the output of an indicator.

      Thank you.[/QUOTE]

      Comment

      Latest Posts

      Collapse

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