Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator in indicator

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

    Indicator in indicator

    Suppose I have defined new indicators oscil1 and oscil2 which correctly plot on a chart. Now I which to define a new indicator3 which is basically (oscil1[0]-oscil1[1]) / simple moving average 100 periods (oscil2) [0].
    I have 2 questions:
    * after having correctly defined and compiled oscil1 and oscil2, how to integrate these indicators in the new one: for the moment an error message "oscil1 does not exist" appears
    * how to easily define and use the single moving average of the oscil2 in the new indicator oscil3?

    Thanks

    #2
    Originally posted by Gepetto View Post
    Suppose I have defined new indicators oscil1 and oscil2 which correctly plot on a chart. Now I which to define a new indicator3 which is basically (oscil1[0]-oscil1[1]) / simple moving average 100 periods (oscil2) [0].
    I have 2 questions:
    * after having correctly defined and compiled oscil1 and oscil2, how to integrate these indicators in the new one: for the moment an error message "oscil1 does not exist" appears
    * how to easily define and use the single moving average of the oscil2 in the new indicator oscil3?

    Thanks
    Gepetto,

    Try looking at the code for ZerolagMACD in the download area.

    RJay
    RJay
    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Taddypole, 04-26-2024, 02:47 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Eduardo  
    Started by futtrader, 04-21-2024, 01:50 AM
    6 responses
    58 views
    0 likes
    Last Post futtrader  
    Started by sgordet, Today, 11:48 AM
    0 responses
    4 views
    0 likes
    Last Post sgordet
    by sgordet
     
    Started by Trader146, Today, 11:41 AM
    0 responses
    5 views
    0 likes
    Last Post Trader146  
    Started by jpapa, 04-23-2024, 07:22 AM
    2 responses
    22 views
    0 likes
    Last Post rene69851  
    Working...
    X