Use data of another indicator as input of current indicator

Moderator: admin

Use data of another indicator as input of current indicator

Postby Cactus » Tue Jun 20, 2017 7:12 am

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?
Never chase the money, let the money come to me
User avatar
Cactus
FXCodeBase: Graduate
 
Posts: 213
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

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

Postby Apprentice » Tue Jun 20, 2017 11:08 am

In this example.
viewtopic.php?f=17&t=34094
we use an external indicator for ATR calculation.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17398
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator Development

Who is online

Users browsing this forum: seunboi4u and 3 guests