J'avais pas vu que la balise Code existait. Voici donc le Code de l'indicateur pour afficher des bougies de 5min dans graph 1min. Une fois crée Il faut ajouter en utilisant la molette de ton graphique de prix pour qu'il s'installe avec.
Code : #
//Calcul HeikinAshi En 5 Minute dans Une Graphe en 1 Min
Seconde = Time - (Hour * 10000) - (Minute * 100)
If BarIndex > 5 * 2 Then //* 2 Par Sécurité
If Minute = 0 or Minute = 5 or Minute = 10 or Minute = 15 or Minute = 20 or Minute = 25 or Minute = 30 or Minute = 35 or Minute = 40 or Minute = 45 or Minute = 50 or Minute = 55 Then
// Close[0] = Clôture de la barre ene 1 minute de 49m00 à 49m59
// Close[1] = Clôture de la barre en 1 minute de 48m00 à 48m59
// Close[2] = Clôture de la barre en 1 minute de 47m00 à 47m59
// Close[3] = Clôture de la barre en 1 minute de 46m00 à 46m59
// Close[4] = Clôture de la barre en 1 minute de 45m00 à 45m59
Close5min = Close[0]
Open5min = Open[4]
High5min = High[4]
For I = 3 DownTo 0
If High[I] > High5min Then
High5min = High[I]
EndIf
Next
Low5min = Low[4]
For I = 3 DownTo 0
If Low[I] < Low5min Then
Low5min = Low[I]
EndIf
Next
If Seconde = 00 Or Seconde = 01 Then
HeikinAshiClose5min = (Open5min+High5min+Low5min+Close5min)/4
If BarIndex > 10 * 2 Then //* 2 Par Sécurité
HeikinAshiOpen5min = (HeikinAshiOpen5min[5] + HeikinAshiClose5min[5])/2
If High5min > HeikinAshiOpen5min Then
HeikinAshiHigh5min = High5min
Else
HeikinAshiHigh5min = HeikinAshiOpen5min
EndIf
if HeikinAshiClose5min > HeikinAshiHigh5min Then
HeikinAshiHigh5min = HeikinAshiClose5min
EndIf
//HeikinAshiLow = valeur la plus basse des trois : B, Oha, Cha
If Low5min < HeikinAshiOpen5min Then
HeikinAshiLow5min = Low5min
Else
HeikinAshiLow5min = HeikinAshiOpen5min
EndIf
If HeikinAshiClose5min < HeikinAshiLow5min Then
HeikinAshiLow5min = HeikinAshiClose5min
EndIf
//Début Coloriage
//
If HeikinAshiClose5min > HeikinAshiOpen5min Then //BLEU
DRAWRECTANGLE (BarIndex - 4, HeikinAshiOpen5min, BarIndex, HeikinAshiClose5min) COLOURED (0,255,255)
If HeikinAshiLow5min = HeikinAshiOpen5min Then //BLEU FLAT
DrawText("Flat 5m", BarIndex -2 , HeikinAshiOpen5min) COLOURED (0,255,255)
EndIf
If HeikinAshiHigh5min > HeikinAshiClose5min Then //MECHE HAUTE
DRAWRECTANGLE (BarIndex - 3, HeikinAshiHigh5min, BarIndex - 1, HeikinAshiClose5min) COLOURED (0,255,255)
EndIf
If HeikinAshiLow5min < HeikinAshiOpen5min Then //MECHE BASSE
DRAWRECTANGLE (BarIndex - 3, HeikinAshiLow5min, BarIndex - 1, HeikinAshiOpen5min) COLOURED (0,255,255)
EndIf
ElsIf HeikinAshiClose5min < HeikinAshiOpen5min Then //ROUGE
DRAWRECTANGLE (BarIndex - 4, HeikinAshiOpen5min, BarIndex, HeikinAshiClose5min) COLOURED (255,85,85)
If HeikinAshiHigh5min = HeikinAshiOpen5min Then //ROUGE FLAT
DrawText("Flat 5m", BarIndex -2 , HeikinAshiOpen5min) COLOURED (255,85,85)
EndIf
If HeikinAshiHigh5min > HeikinAshiOpen5min Then //MECHE HAUTE
DRAWRECTANGLE (BarIndex - 3, HeikinAshiHigh5min, BarIndex - 1, HeikinAshiOpen5min) COLOURED (255,85,85)
EndIf
If HeikinAshiLow5min < HeikinAshiClose5min Then //MECHE BASSE
DRAWRECTANGLE (BarIndex - 3, HeikinAshiLow5min, BarIndex - 1, HeikinAshiClose5min) COLOURED (255,85,85)
EndIf
Else //NOIR
DRAWRECTANGLE (BarIndex - 4, HeikinAshiOpen5min, BarIndex, HeikinAshiClose5min) COLOURED (0,0,0)
If HeikinAshiHigh5min > HeikinAshiOpen5min Then //MECHE HAUTE
DRAWRECTANGLE (BarIndex - 3, HeikinAshiHigh5min, BarIndex - 1, HeikinAshiOpen5min) COLOURED (0,0,0)
EndIf
If HeikinAshiLow5min < HeikinAshiClose5min Then //MECHE BASSE
DRAWRECTANGLE (BarIndex - 3, HeikinAshiLow5min, BarIndex - 1, HeikinAshiClose5min) COLOURED (0,0,0)
EndIf
EndIf
//
//Fin Coloriage
Else
HeikinAshiOpen5min = Open5min
HeikinAshiHigh5min = High5min
HeikinAshiLow5min = Low5min
EndIf
EndIf
EndIf
EndIf
Return //HeikinAshiOpen5min as "HAOpen5min", HeikinAshiClose5min as "HAClose5min", HeikinAshiLow5min as "HALow5min", HeikinAshiHigh5min as "HAHigh5min"