When creating a indicator, is it possible to get data from symbols other than the one the indicator is placed upon?
Also my apologies if this has already been discussed, but I cannot seem to find much on this.
Indicator referencing more symbols
-
- Posts: 5
- Joined: 20 Sep 2013
- Has thanked: 1 time
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Indicator referencing more symbols
Yes, this can be done with the DataLoader. An example for that can be found here.When creating a indicator, is it possible to get data from symbols other than the one the indicator is placed upon?
-
- Posts: 5
- Joined: 20 Sep 2013
- Has thanked: 1 time
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Indicator referencing more symbols
That is also possible to reference data from a subchart (ex. current close from second data series):
Example of how to make the function calculated on data2 can be found here.
Code: Select all
BarsOfData(2).Close