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′).
Bips every 30 minutes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Emettre un son chaque 1/2 heure
//Placer l'indicateur sur l'UT=15min
if(minute>0andminute<=15)or(minute>30andminute<=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
ifa=1and(close<>close[1]oropen<>open[1]orlow<>low[1]orhigh<>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...)
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue