High low time code.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #111561 quote
    kalleklovnkalleklovn
    Participant
    Junior

    Hi is there a way to code the hige and low for candles on the 1H time frame?

    Eks: bar at 07:00 and 08:00 hige low and the a buy order if candle 09:00 brakes over or under?

     

    Thanks for your help and hope you under stand what Im talking about šŸ™‚

    #111564 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Which TF are you using?

    #111566 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go, I tested it on DAX 1-minute TF:

    DEFPARAM DrawOnLastBarOnly = true
    IF BarIndex = 0 THEN
       FromTime = 070000
       ToTime   = 080000
       Hi       = 0
       Lo       = 999999
    ENDIF
    IF OpenTime >= FromTime AND OpenTime <= ToTime THEN
       Hi = max(Hi,High)
       Lo = min(Lo,Low)
    ENDIF
    DRAWHLINE(Hi)
    DRAWHLINE(Lo)
    RETURN
    x-20.jpg x-20.jpg
Viewing 3 posts - 1 through 3 (of 3 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

High low time code.


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
kalleklovn @kalleklovn Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 10/29/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...