Hello-
I have an issue with an indicator that uses the secondary timeframe on a multiple timeframe chart. The chart has a 500 contract 3-line break chart as the primary, visible chart, and a 3000 contract bar chart that's hidden. The indicator's datapoints are being plotted in the chart but the datapoints that don't exactly match the timestamps of the primary timeframe are not being painted with the coded color. Please see the attached image.
I've also attached an image of the indicator in a separate, single timeframe chart (3000 contract bar chart, similar time period), where the datapoints are being painted correctly.
Any help on resolving this issue is much appreciated.
Thank you,
masber2000
Multiple timeframes - Weird indicator issue
-
- Posts: 29
- Joined: 15 Aug 2012
- Has thanked: 2 times
- Kate MultiCharts
- Posts: 597
- Joined: 21 Oct 2020
- Has thanked: 9 times
- Been thanked: 148 times
Re: Multiple timeframes - Weird indicator issue
Hello masber2000,
You can base the indicators calculation on different data series in the Format Indicator window -> Properties tab -> Base Study On.
More info about that setting in our Wiki.
You can base the indicators calculation on different data series in the Format Indicator window -> Properties tab -> Base Study On.
More info about that setting in our Wiki.
-
- Posts: 29
- Joined: 15 Aug 2012
- Has thanked: 2 times
Re: Multiple timeframes - Weird indicator issue
Kate, thank you for your response. I already have the "Base study on" data correct - in fact, the indicator outputs are equal on both of the aforementioned charts. The only difference between the two charts is the color of the crosses in the image above..
- Kate MultiCharts
- Posts: 597
- Joined: 21 Oct 2020
- Has thanked: 9 times
- Been thanked: 148 times
Re: Multiple timeframes - Weird indicator issue
masber2000,
This is the designed behaviour.
Indicator can only create plots on its base data series bars.
You may need to apply your indicator to Data1 and base the plot calculation on Data2. Most likely you’ll need to adjust the indicator’s script.
This is the designed behaviour.
Indicator can only create plots on its base data series bars.
You may need to apply your indicator to Data1 and base the plot calculation on Data2. Most likely you’ll need to adjust the indicator’s script.
-
- Posts: 29
- Joined: 15 Aug 2012
- Has thanked: 2 times
Re: Multiple timeframes - Weird indicator issue
Again, the plot is totally correct, there's nothing wrong with the indicator's calculations. I'm only inquiring about why the color of the plots only prints when aligned with data1. I'm happy with the calculations, but not the colors that don't print.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: Multiple timeframes - Weird indicator issue
You need to write notes on the screen shot, with arrows pointing out to what is obviously wrong to you, but oblivous to the causual viewer.Again, the plot is totally correct, there's nothing wrong with the indicator's calculations. I'm only inquiring about why the color of the plots only prints when aligned with data1. I'm happy with the calculations, but not the colors that don't print.
Re: Multiple timeframes - Weird indicator issue
Kate, is there a way of performing this action within Powerlanguage? I am using two data series in the strategy and multiple indicators. Not all indicators have a "price" attribute to which BarsOfData(2).close (for example) can be applied.Hello masber2000,
You can base the indicators calculation on different data series in the Format Indicator window -> Properties tab -> Base Study On.
More info about that setting in our Wiki.
Please advise.
- Kate MultiCharts
- Posts: 597
- Joined: 21 Oct 2020
- Has thanked: 9 times
- Been thanked: 148 times
Re: Multiple timeframes - Weird indicator issue
Hi DonDuck,
No, there is no way to do so. The data series to base any indicator on can only be set as described in my post above. Referencing the second data series in the indicator's code is not obligatory.
No, there is no way to do so. The data series to base any indicator on can only be set as described in my post above. Referencing the second data series in the indicator's code is not obligatory.
Re: Multiple timeframes - Weird indicator issue
Kate,Hi DonDuck,
No, there is no way to do so. The data series to base any indicator on can only be set as described in my post above. Referencing the second data series in the indicator's code is not obligatory.
Thank you for the response. I had scoured the documentation and just assumed I missed something.
I will continue to research/test a way to get the Heikin-Ashi (series-1) and Point (series-2) auto-strategy to work...
DonDuck