TOKYO SESSION ZONE

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #187092 quote
    mvintermvinter
    Participant
    Average

    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

    #187120 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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"
    #187291 quote
    mvintermvinter
    Participant
    Average

    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 ?

    #187292 quote
    mvintermvinter
    Participant
    Average

    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 ?

    #187293 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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.

    #190997 quote
    mvintermvinter
    Participant
    Average

    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

    #190999 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    It’s only 22 lines, check that you haven’t added further lines by mistake.

    #191004 quote
    mvintermvinter
    Participant
    Average

    ok great re copied and all good now Thank You

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

TOKYO SESSION ZONE


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
mvinter @mvinter Participant
Summary

This topic contains 7 replies,
has 2 voices, and was last updated by mvintermvinter
4 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/30/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...