Hi has anyone got a code to highlight a zone on the chart the Tokyo session with a line to highlight the high and low of that session ??
Many Thanks
There you go:
SessionStart = 230000
SessionEnd = 070000
IF (OpenTime = SessionStart) OR ((OpenTime < SessionEnd) AND (OpenTime < OpenTime[1])) THEN
r = 0
g = 128
b = 0
t = 55
HH = high
LL = low
ENDIF
IF OpenTime[1] = SessionEnd THEN
r = 255
g = 255
b = 255
t = 255
ENDIF
IF (OpenTime >= SessionStart AND OpenTime <= 240000) OR ((OpenTime >= 0) AND (OpenTime <= SessionEnd)) THEN
HH = max(HH,high)
LL = min(LL,low)
ENDIF
backgroundcolor(r,g,b,t)
RETURN HH AS "Session High",LL AS "Session Low"
Robbertogozzi Thank you very much for code but when I add this to new indicator and add to chart I get this error ??
line 25:
characters missing. suggestions : end of code
Any Help please ?
ok I got it to chart I copied from email and had extra line in so sorry
Now I just get an indicator at the bottom of chart ? not overlayed ontop of price action ?
To have it ON the chart, rather than below, click the price tag on the top left corner of your chart, then select Add an Indicator and choose one to be added among those listed.
Hi Roberto, im trying to load the tokyo code again and keep getting ERROR IN THE INDICATOR LINE 33 CHARACTERS MISSING SUGGESTIONS : end of code
Thanks for any help
It’s only 22 lines, check that you haven’t added further lines by mistake.
ok great re copied and all good now Thank You