
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello community!
I have a problem i don't know how to resolve. I'm writing an indicator to display a price chart over an other price chart. So far this was easy i do it this way:
This is how the chart looks like. The black line is the close price of the regular chart. The red one is the close price of the second chart i plot on the chart.
But here comes my problem. The two charts i wan't to look at are traded on different times. So the first chart is Crude Oil and the second one is Brent Oil. While Brent Oil is not traded between 23:00 and 02:00 Crude Oil is. So when ploting the chart of Brent Oil over the Crude Oil the Brent price is shifted because of this interval from 23:00 to 02:00.
What i would need is a solution to plot the second chart on the first chart only when the hours of both charts coincide. I tried many ways to do this but without result.
Thank you very much for your help.
Regards