Page 1 of 1

Use data of another indicator as input of current indicator

PostPosted: Tue Jun 20, 2017 7:12 am
by Cactus
how does code for such would look like in a strategy
instead of indicators being calculated on price bar (ohlc), how to change their calculation to be based on another source (another indicators data stream output). I know this is possible on charts when applying indicator with clicking the mouse and going to the menus of source, but to automate it in lua?

Re: Use data of another indicator as input of current indica

PostPosted: Tue Jun 20, 2017 11:08 am
by Apprentice
In this example.
viewtopic.php?f=17&t=34094
we use an external indicator for ATR calculation.