Gann high-low activator
Forums › ProRealTime forum Français › Support ProBuilder › Gann high-low activator
- This topic has 4 replies, 3 voices, and was last updated 3 months ago by touline.
-
-
08/03/2024 at 10:09 AM #23608408/03/2024 at 1:01 PM #236089
Salut,
Il s’agit d’une version modifiée (couleurs) de l’indicateur de la bibliothèque…
//PRC_Gann HighLow Activator | indicator
//31.12.2016
//Nicolas @ http://www.prorealcode.com
//Sharing ProRealTime knowledge
//Converted from Metastock version// — parameters
period = 3
// —avgH = average[period](high)[1]
avgL = average[period](low)[1]if close>avgH then
hilo = 1
elsif close<avgL then
hilo = 0
endifif hilo then
gannHiLo = avgL
DrawPoint(BarIndex, avgL,2)Coloured(“Green”)
color = 1
else
gannHiLo = avgH
DrawPoint(BarIndex, avgH,2)Coloured(“Red”)
color = -1
endifr = 0
g = 255
b = 0
t = 255IF color = -1 THEN
r = 255
g = 0
t = 255
ENDIFDrawCandle(Open,High,Low,Close) coloured(r,g,b,t)
RETURN //GannHiLo style(dottedline) coloured(r,g,b,t) AS “GannHiLo Activator”
1 user thanked author for this post.
08/03/2024 at 3:28 PM #23609908/07/2024 at 6:24 PM #236241Par conséquent, vous voyez seulement le manque des lignes verticales :
123456789101112131415161718192021222324252627Lb = 9if close > Average[Lb](High)[1] thentrend = 1gann = Average[ Lb ](low)[1]r=0g=125b=0elsif close < Average[Lb](Low)[1] thentrend = -1gann = Average[Lb](high)[1]r=255g=0b=125elsetrend = trendendifif trend <> trend[1] thenif trend = 1 thendrawvline(barindex)coloured(r,g,b)style(dottedline,1)elsif trend = -1 thendrawvline(barindex)coloured(r,g,b)style(dottedline,1)endifendifreturn gann as "Gann"coloured(r,g,b)style(line,2)08/07/2024 at 6:40 PM #236243 -
AuthorPosts