Date/Time: Fri, 22 Sep 2023 11:02:29 +0000
Post From: Charting the difference between yesterdays close and the current price
|User771280 - Posts: 4|
Sorry...mistake in the prior post! Please use this one.
I'm plotting the difference between yesterdays close and the current price of the ES.
1. One main 5 minute ES chart that is set to start: 15:30 stop 15:14:59
2. Added Study/Price Overlay for another daily ES chart that is set to start: 8:30 stop 15:14:59
3. Added study subgraph subtract/difference:
Input study #1 = main 5 minute ES chart using the Last option
Input study #2 = main daily ES chart using the Last option
Study 2 subgraph offset = 1
Draw zeros = yes
Perform subtract with zero value = yes
The study subgraph subtract/difference doesn't look at the current last daily bar (item #2) correctly throughout the trading session.
Normal output currently:
During the regular trading of 8:30 - 15:14:59 the plot has the correct value, looks at the last daily bar which is 1 day.
During the after hours trading of 15:30 - 8:29:59 the plot has the incorrect value...it still uses 2 days prior instead of 1 day. I can change the "Study 2 subgraph offset = 1" to "Study 2 subgraph offset = 0" and I get the correct value.