TIGER couleur de bougie à modifier
Forums › ProRealTime forum Français › Support ProBuilder › TIGER couleur de bougie à modifier
- This topic has 15 replies, 6 voices, and was last updated 1 month ago by
Bernard13.
-
-
11/05/2025 at 9:27 AM #253312
Voici mon indicateur phare , le TIGER. J’aimerai que la couleur de la bougie BUY se colorise en bleu et la bougie SELL en jaune. Merci Ivan par avance.
//
defparam calculateonlastbars = 5000
if Close>( max(max(high,high[1]),max(high[1],high[1]) ))[1] then
D=Min(Min(low,low[1]),Min(low[1],low[1]))
elsif close<(Min(Min(low,low[1]),Min(low[1],low[1])))[1] then
D=Max(Max(high,high[1]),Max(high[1],high[1]))
else
D=D[1]
endif
//plot1 = 0
//plot2 = 0rge = averagetruerange[10](close)
if (close crosses over D) then
//plot1 = 1
//DRAWARROWUP(barindex,low[1]-0.2*rge) coloured(250,250,0,250)
DRAWTEXT(“▲”,BarIndex,low[1]-0.40*rge,dialog,bold,25) coloured(0,250,0,255)//(H1/H4 = +7) (1 min = -1)
levelDwn=low[0]
hh=high//else
//plot1 = 0
endif
if (close crosses under D) then
//DRAWARROWDOWN(barindex,high[1]+0.2*rge) coloured(250,250,0,250)
DRAWTEXT(“▼”,BarIndex,high[1]+0.40*rge,serif,bold,25) coloured(250,0,0,255) //(H1/H4 = +7) (1 min //= -12
//plot2=-1
//else
//plot2=0
levelUP=high[0]
ll=low
endifreturn D,levelUp coloured(0,250,0) STYLE(dottedLINE),levelDwn coloured(250,0,0) STYLE(dottedLINE),hh coloured(0,250,0) STYLE(LINE),ll coloured(250,0,0) STYLE(LINE)
11/05/2025 at 9:34 AM #25331411/05/2025 at 9:55 AM #253317salut. Ici, utilisez simplement les instructions drawcandle(open,high,low,close)colored("jaune")
12345678910111213141516171819202122232425262728293031323334353637383940//defparam calculateonlastbars = 5000if Close>( max(max(high,high[1]),max(high[1],high[1]) ))[1] thenD=Min(Min(low,low[1]),Min(low[1],low[1]))elsif close<(Min(Min(low,low[1]),Min(low[1],low[1])))[1] thenD=Max(Max(high,high[1]),Max(high[1],high[1]))elseD=D[1]endif//plot1 = 0//plot2 = 0rge = averagetruerange[10](close)if (close crosses over D) then//plot1 = 1//DRAWARROWUP(barindex,low[1]-0.2*rge) coloured(250,250,0,250)DRAWTEXT("▲",BarIndex,low[1]-0.40*rge,dialog,bold,25) coloured(0,250,0,255)//(H1/H4 = +7) (1 min = -1)levelDwn=low[0]hh=highdrawcandle(open,high,low,close)coloured("blue")//else//plot1 = 0endifif (close crosses under D) then//DRAWARROWDOWN(barindex,high[1]+0.2*rge) coloured(250,250,0,250)DRAWTEXT("▼",BarIndex,high[1]+0.40*rge,serif,bold,25) coloured(250,0,0,255)drawcandle(open,high,low,close)coloured("yellow")//(H1/H4 = +7) (1 min //= -12//plot2=-1//else//plot2=0levelUP=high[0]ll=lowr=0g=255b=255endifreturn D,levelUp coloured(0,250,0) STYLE(dottedLINE),levelDwn coloured(250,0,0) STYLE(dottedLINE),hh coloured(0,250,0) STYLE(LINE),ll coloured(250,0,0) STYLE(LINE)1 user thanked author for this post.
11/05/2025 at 11:49 AM #25332011/05/2025 at 11:51 AM #25332411/05/2025 at 11:56 AM #25332711/05/2025 at 4:55 PM #25334411/05/2025 at 5:56 PM #25335011/06/2025 at 11:56 AM #253368J'ai déjà répondu dans le nouveau sujet que vous avez créé. https://www.prorealcode.com/topic/coder-un-algo-avec-2-itf/
11/12/2025 at 10:02 AM #253553Bonjour,
Cet indicateur Tiger m’a fortement interpellé, et j’ai cherché en vain son auteur sur le net.
Beaucoup de robots sont verrouillés sur TV, mais rien en code ouvert, et historiquement j’ai retrouvé une proposition de Backtest de Roberto pour MadroSat =>https://www.prorealcode.com/topic/placer-des-fleches-buy-sell-a-partir-de-mon-indic/
En fait, il n’y a pas d’auteur car le signal provient tout simplement de l’interprétation des prix en Heikin-Ashi !
Voici le code optimisé et la preuve par les graphs. Bons Trades.//=====================================================================================================================
// ProRealTime V12 / Partage des connaissances ProRealTime. / Sharing ProRealTime knowledge.
// by robertogozzi(18/08/2019), geroniman & Ivan (05/11/2025)// 2025 11 08 22:59
// Optimized code by Bernard13 (BYP)//=====================================================================================================================
// #I BYP Tiger
//=====================================================================================================================
//—– Heikin-Ashi signal
IF Close >= MAX(High[1], High[2]) THEN
Tiger= MIN(Low, Low[1])
ELSIF Close < MIN(Low[1], Low[2]) THEN Tiger= MAX(High, High[1]) ELSE Tiger= Tiger[1] ENDIF IF Close CROSSES OVER Tiger THEN DrawText("▲", BarIndex, Low[1]-TR/4, Dialog, Bold, 16) Coloured("Lime") DrawCandle(Open, High, Low, Close) Coloured("Lime") LevelDn= Low[0] HH= High ENDIF IF Close CROSSES UNDER Tiger THEN DrawText("▼", BarIndex, High[1]+TR/4, Dialog, Bold, 16) Coloured("Red") DrawCandle(Open, High, Low, Close) Coloured("Red") LevelUp= High[0] LL= Low ENDIF //===================================================================================================================== RETURN Tiger AS "Tiger", LevelUp AS "Level Up" Coloured("Lime") Style(DottedLine), LevelDn AS "Levl Down" Coloured("Red") Style(DottedLine), HH AS "HH"Coloured("Lime") Style(Line), LL AS "LL" Coloured("Red") Style(Line) //=====================================================================================================================11/12/2025 at 10:11 AM #253555//=====================================================================================================================
// ProRealTime V12 / Partage des connaissances ProRealTime. / Sharing ProRealTime knowledge.
// by robertogozzi(18/08/2019), geroniman & Ivan (05/11/2025)// 2025 11 08 22:59
// Optimized code by Bernard13 (BYP)//=====================================================================================================================
// #I BYP Tiger
//=====================================================================================================================
//—– Heikin-Ashi signal
IF Close >= MAX(High[1], High[2]) THEN
Tiger= MIN(Low, Low[1])
ELSIF Close < MIN(Low[1], Low[2]) THEN Tiger= MAX(High, High[1]) ELSE Tiger= Tiger[1] ENDIF IF Close CROSSES OVER Tiger THEN DrawText("▲", BarIndex, Low[1]-TR/4, Dialog, Bold, 16) Coloured("Lime") DrawCandle(Open, High, Low, Close) Coloured("Lime") LevelDn= Low[0] HH= High ENDIF IF Close CROSSES UNDER Tiger THEN DrawText("▼", BarIndex, High[1]+TR/4, Dialog, Bold, 16) Coloured("Red") DrawCandle(Open, High, Low, Close) Coloured("Red") LevelUp= High[0] LL= Low ENDIF //===================================================================================================================== RETURN Tiger AS "Tiger", LevelUp AS "Level Up" Coloured("Lime") Style(DottedLine), LevelDn AS "Levl Down" Coloured("Red") Style(DottedLine), HH AS "HH"Coloured("Lime") Style(Line), LL AS "LL" Coloured("Red") Style(Line) //=====================================================================================================================11/12/2025 at 10:15 AM #25355611/12/2025 at 1:01 PM #253561Oui,
(au cas où, en premier, avant de taper tout texte pour ne pas le perdre lors de la manip, si le bouton “insert PRT code” manque sur la droite de la barre d’outil de rédaction du message, faire CTRL+F5 qui le fera réapparaître dans la plupart des cas… en espérant que le problème disparaisse avec le nouveau site à venir)
soit d’abord cliquer sur le bouton “insert PRT code” de la barre d’outils du message, et dans la fenêtre qui s’ouvre y copier son code, puis finaliser la manip par un click sur le bouton “add”,
soit en s’étant assurer que le bouton “insert PRT code” est bien présent, d’abord taper son texte et son code dans le corps du message d’abord, puis sélectionner le code en entier à la souris (ou le faire par morceaux l’un après l’autre si plusieurs bouts de code entrecoupés de texte du message), et appuyer sur “insert PRT code” qui ouvrira la fenêtre avec le code pré-rempli, et cliquer sur “add”
1 user thanked author for this post.
11/12/2025 at 3:22 PM #253564//=====================================================================================================================
// ProRealTime V12 / Partage des connaissances ProRealTime. / Sharing ProRealTime knowledge.
// by robertogozzi(18/08/2019), geroniman & Ivan (05/11/2025)// 2025 11 08 22:59
// Optimized code by Bernard13 (BYP)//=====================================================================================================================
// #I BYP Tiger
//=====================================================================================================================
//—– Heikin-Ashi signal
IF Close >= MAX(High[1], High[2]) THEN
Tiger= MIN(Low, Low[1])
ELSIF Close < MIN(Low[1], Low[2]) THEN
Tiger= MAX(High, High[1])
ELSE
Tiger= Tiger[1]
ENDIFIF Close CROSSES OVER Tiger THEN
DrawText(“▲”, BarIndex, Low[1]-TR/4, Dialog, Bold, 16) Coloured(“Lime”)
DrawCandle(Open, High, Low, Close) Coloured(“Lime”)
LevelDn= Low[0]
HH= High
ENDIFIF Close CROSSES UNDER Tiger THEN
DrawText(“▼”, BarIndex, High[1]+TR/4, Dialog, Bold, 16) Coloured(“Red”)
DrawCandle(Open, High, Low, Close) Coloured(“Red”)
LevelUp= High[0]
LL= Low
ENDIF//=====================================================================================================================
RETURN Tiger AS “Tiger”, LevelUp AS “Level Up” Coloured(“Lime”) Style(DottedLine), LevelDn AS “Levl Down” Coloured(“Red”) Style(DottedLine), HH AS “HH”Coloured(“Lime”) Style(Line), LL AS “LL” Coloured(“Red”) Style(Line)
//=====================================================================================================================11/12/2025 at 3:23 PM #253565123456789101112131415161718192021222324252627282930313233343536//=====================================================================================================================ProRealTime V12 / ProRealTime Knowledge Sharing. / Sharing ProRealTime knowledge.// by robertogozzi(18/08/2019), geroniman & iván (05/11/2025)2025 11 08 22:59// Optimized code by Bernard13 (BYP)//=====================================================================================================================#I BYP Tiger//=====================================================================================================================//—– Heikin-Ashi signalIF Close >= MAX(High[1], High[2]) THENTiger= MIN(Low, Low[1])ELSIF Close < MIN(Low[1], Low[2]) THENTiger= MAX(High, High[1])ELSETiger= Tiger[1]ENDIFIF Close CROSSES OVER Tiger THENDrawText("▲", BarIndex, Low[1]-TR/4, Dialog, Bold, 16) Coloured("Lime")DrawCandle(Open, High, Low, Close) Coloured("Lime")LevelDn= Low[0]HH= HighENDIFIF Close CROSSES UNDER Tiger THENDrawText("▼", BarIndex, High[1]+TR/4, Dialog, Bold, 16) Coloured("Red")DrawCandle(Open, High, Low, Close) Coloured("Red")LevelUp= High[0]LL= LowENDIF//=====================================================================================================================RETURN Tiger AS "Tiger", LevelUp AS "Level Up" Coloured("Lime") Style(DottedLine), LevelDn AS "Levl Down" Coloured("Red") Style(DottedLine), HH AS "HH"Coloured("Lime") Style(Line), LL AS "LL" Coloured("Red") Style(Line)//===================================================================================================================== -
AuthorPosts
Find exclusive trading pro-tools on