I've searched the forum but have not found anything which explains how to do this.
I have a simple strategy which uses stochastics over two time frames and currently displays the price data and the stochastics panel for the price data of the primary series.
As a check that my strategy is working correctly I also want to display the stochastics of the higher time frame on another panel at the same time - effectively I want to do something like Add(Stochastics(...) for the secondary time frame) in Initialise.
In summary I would like to display...
Price Data (Primary timeframe - e.g. daily)
Stochastics (Primary timeframe - e.g daily)
Stochastics (Secondary timeframe - e.g. weekly)
I can duplicate this on a standard chart by adding two data series and assigning Stochastics to two different periods of the same data series but would like to achieve the same thing within my ninja script code so that I can use it within the Strategy Analyzer.
Thanks in advance for your help
Oz
Comment