Right now Optuma uses live data feeds and displays the timezone of that feed in. Please allow GMT adjustments to optuma, so that we can specify the timezone ourself and optuma updates this, such as adding trading period for sundays from NY UTC-5 session timezone.
Okay, so I did some dirty work. But I’ve run into a problem. I can’t get the chart to highlight the areas suggested.
The chart is XAUUSD (AxicorpFX)
The script are as follows:
7am Ny York Open
// Find the full bar date with intraday decimals V1 = BARDATE(); // Find the daily bar date, without decimals V2 = ROUND(V1, DECIMALTYPE=0); // Reduce bar date to intraday range only V3 = V1 - V2; // Identify Out of Session Range for Midnight NY (7am to 7:01am) // Outside of 7am - 7:01am range V4 = (V3 < 0.290278) or (V3 > 0.291667); // Highlight 7am Bar V5 = (V3 > 0.291667) and (V3 < 0.292361); // Mark Out of Session Range or Highlight 7am Bar V4 or V5
2AM - 11AM Asia
// Find the full bar date with intraday decimals V1 = BARDATE(); // Find the daily bar date, without decimals V2 = ROUND(V1, DECIMALTYPE=0); // Reduce bar date to intraday range only V3 = V1 - V2; // Identify Out of Session Range for Asian Session (2am to 11am) // Less than 2am or greater than 11am V4 = (V3 < 0.083333) or (V3 > 0.458333); // Mark Out of Session Range V4
And so on.
The problem is I can’t seem to get it to mark each time zone a different colour. It just only has 2 colours really.
Resolved with
// Find the full bar date with intraday decimals V1 = BARDATE(); // Find the daily bar date, without decimals V2 = ROUND(V1, DECIMALTYPE=0); // Reduce bar date to intraday range only V3 = V1 - V2; // Identify In-Session Range for London Session (10am to 7pm) // Between 10am and 7pm V4 = (V3 >= 0.416667) and (V3 <= 0.875); // Mark In-Session Range V4
However I cannot get to show this on anything, not working.
// Find the full bar date with intraday decimals V1 = BARDATE(); // Find the daily bar date, without decimals V2 = ROUND(V1, DECIMALTYPE=0); // Reduce bar date to intraday range only V3 = V1 - V2; // Identify In-Session Range for 2:00 PM to 5:00 PM // Between 2:00 PM and 5:00 PM V4 = (V3 >= 0.541667) and (V3 <= 0.708333); // Mark In-Session Range V4
Hi,
One thing to remember with the intraday bar label process you are using (to build V3), is that at noon the values shift from + to -.
To mark 2pm to 5pm the values being referenced are both negatives.
V4 = (V3 >= -0.416667) and (V3 <= -0.281255);
[postquote quote=70475]
Excellent work Matthew. Can you code session times and killzones right into optuma please.
All the information is available here for NY timing - https://theproptrader.co/ict-smart-money/, jsut need to find a way to convert it to each broker etc.