Bonsoir Nicolas,
Tout d’abord un immense merci pour vos travaux et votre réactivité.
Je cherche à appeler cet indicateur ( Zig Zag avec volumes cumulés ) pour réaliser un programme automatique d’achat et de vente au changement de couleur sur PRT.
 
Hello Nicholas, First of all, a huge thank you for your work and your responsiveness. I’m looking to call this indicator (Zig Zag with Cumulative Volumes) to perform an automatic color change buy and sell program on PRT.
 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
 
 | 
zz = ZigZag[9](close) 
peak = zz<zz[1] and zz[1]>zz[2] 
tough = zz>zz[1] and zz[1]<zz[2] 
cumV = cumV+volume 
if peak then 
text = cumV/1000 
drawtext(“#text#K”,barindex,cumV+(cumV/20),Dialog,Bold,12) coloured(0,200,0) 
cumV = Volume 
color = –1 
elsif tough then 
text = cumV/1000 
drawtext(“#text#K”,barindex,cumV+(cumV/20),Dialog,Bold,12) coloured(200,0,0) 
cumV = Volume 
color = 1 
endif 
return cumV coloured by color 
 
 | 
 
Je n’arrive pas à le faire fonctionner et je reçois le message suivant :
” Votre système de trading utilise des instructions obsolètes qui ne sont plus supportés ( zig zag )”
A priori il y aurait un souci avec la commande ” color “
Pourriez vous m’aider à réaliser ce programme d’achat vente automatique ?
En tous cas, merci encore
I can’t get it to work and I get the following message: 
“Your trading system uses obsolete instructions that are no longer supported (zig zag)” 
A priori there would be a problem with the “color” command 
Could you help me to realize this program of purchase automatic sale? 
Anyway, thanks again
Antoine