High low time code.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #111561 quote
    kalleklovn
    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
    robertogozzi
    Moderator
    Master

    Which TF are you using?

    #111566 quote
    robertogozzi
    Moderator
    Master

    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.

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 robertogozzi
6 years, 3 months ago.

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