Lost day

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7826 quote
    Adolfo
    Participant
    Senior

    Hi guys!

    I’m coming crazy with this… Please, look at the image below (attached) and tell me WHY May 11th is missed with this simple code:

    if intradaybarindex = 0 then
    maximo = undefined
    minimo = undefined
    endif
    IF time = 075900 then
    maximo = dhigh(0)
    minimo = dlow(0)
    endif
    
    return maximo coloured (255,0,0) as "Máximo", minimo coloured (0,255,0) as "Mínimo"

    Any help will be much appreciated, thank in advance!

    #7829 quote
    Adolfo
    Participant
    Senior

    [FIXED]

    Grrrhh!!  Maybe something wrong with 07:59:00 bar in 1m timeframe… Is fixed giving it a few bars to calculate it, like this:

    IF time >= 074600 and time <= 075900 then

    Cheers!

    #7830 quote
    Nicolas
    Keymaster
    Master

    Do the bar exist at least?

    #8707 quote
    Adolfo
    Participant
    Senior

    Bar giving problem was a “-” bar same high, low, open and close, and bar before (07:58:00) didn’t exist already.

    Thanks 😉

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

Lost day


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Adolfo @adolfo_onrubia Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Adolfo
9 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/23/2016
Status: Active
Attachments: No files
Logo Logo
Loading...