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 cmoran13, 04-16-2026, 01:02 PM
      0 responses
      37 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      23 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      162 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      98 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      152 views
      2 likes
      Last Post CaptainJack  
      Working...
      X