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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    65 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    23 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    26 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X