Bip indicator

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #48012 quote
    Toto le Heros
    Participant
    Veteran

    Hi,

    I was just looking for a simple way to have a regular “bip” on my platform (every 30′ in my case).

    I know my code is not quite “academic” but it’s fun I think so I just wanted to share, in case it might sound useful for somebody.

    The idea is just to link an alert with this “bip” indicator, so that the system bips once out of two times the UT (ie. every 30′ if your timeframe is 15′).

    //Emettre un son chaque 1/2 heure
    //Placer l'indicateur sur l'UT=15min
    if (minute>0 and minute<=15) or (minute>30 and minute<=45) then//si il est après xh15 et avant xh30, ou après xh45 et x+1h00 (il va falloir biper à la demi ou à l'heure !!!)
     a=1
    else//sinon... il ne faudra pas biper car il sera xh15 et xh45, mais remettre le bip à 0
     a=0
     bip=1
    endif
    
    if a=1 and (close<>close[1] or open<>open[1] or low<>low[1] or high<>high[1]) then//très probablement la bougie n n'est pas absolument identique à la bougie n-1... (sinon,... pas de bip... mais bon il ne se passe rien si bougies identiques...)
     bip=0
    else
     bip=1
    endif
    
    return bip
    
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Bip indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 1 voice and has 0 replies.

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