Manque paramètre
Forums › ProRealTime forum Français › Support ProBuilder › Manque paramètre
- This topic has 5 replies, 3 voices, and was last updated 4 years ago by Cedlam.
Viewing 6 posts - 1 through 6 (of 6 total)
-
-
02/21/2020 at 6:27 PM #120177
Je ne trouve pas l’erreur. Merci d’avance.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849//Variables://RsiPeriod: number of bars to calculare RSI value//RsiOverSold: Oversold Level//RsiOverBought: OverBought Level//MinBarRange: minimum distance from two consecutive RSI Highs or RSI LowsRge = averagetruerange[10](close)MyRSI = rsi[RsiPeriod](Close)RsiPeriod = 7RsiOverSold = 80RsiOverBought = 20MinBarRange = 5ONCE ShiftText = 3RsiMax = MyRSI < MyRSI[1] and MyRSI[1] > MyRSI[2] and MyRSI[1] > RsiOverBoughtRsiMin = MyRSI > MyRSI[1] and MyRSI[1] < MyRSI[2] and MyRSI[1] < RsiOverSold if RsiMax then RSIMax1 = MyRSI[1] High1 = High[1] for I = MinBarRange to 80 if RsiMax[I] then RSIMax2 = MyRSI[I + 1] High2 = High[I + 1] If High1 > High2 and RSIMax1 < RSIMax2 thenDRAWARROWDOWN(barindex, High + Rge / ShiftText)coloured(255,192,203,255)DRAWTEXT("dd", barindex, High + Rge / ShiftText / 0.3,SansSerif,Italic,10)coloured(0,0,255,255)elsif High1 < High2 and RSIMax1 > RSIMax2 thenDRAWARROWDOWN(barindex, High + Rge / ShiftText)coloured(255,192,203,255)DRAWTEXT("hd", barindex, High + Rge / ShiftText / 0.2,SansSerif,Italic,10)coloured(0,0,255,255)endifbreakendifnextendifif RsiMin thenRSIMin1 = MyRSI[1]Low1 = Low[1]for I = MinBarRange to 80if RSIMin[I] thenRSIMin2 = MyRSI[I + 1]Low2 = Low[I + 1]If Low1 < Low2 and RSIMin1 > RSIMin2 thenDRAWARROWUP(barindex, lOW - Rge / ShiftText)coloured(0,0,255,255)DRAWTEXT("dd", barindex, lOW - Rge / ShiftText / 0.3,SansSerif,Italic,10)coloured(0,0,255,255)elsif Low1 > Low2 and RSIMin1 < RSIMin2 thenDRAWARROWUP(barindex, lOW - Rge / ShiftText)coloured(0,0,255,255)DRAWTEXT("hd", barindex, lOW - Rge / ShiftText / 0.2,SansSerif,Italic,10)coloured(0,0,255,255)endifbreakendifnextendifreturn02/21/2020 at 6:28 PM #120180> Merci de renseigner votre pays dans votre page de profile ! <<
🙂> Pour la clarté des messages sur les forums de ProRealCode, merci d’utiliser le bouton “insert PRT code” pour séparer la partie texte de la partie code, merci ! <<
🙂02/21/2020 at 6:31 PM #120182Essayez de déplacer les lignes 9-12 au début, avant la ligne 7.
02/21/2020 at 6:37 PM #12018402/21/2020 at 6:39 PM #120186C’est un mauvais copier/coller, il y a plusieurs lignes qui sont collées entre elles à la ligne 17
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758//Variables://RsiPeriod: number of bars to calculare RSI value//RsiOverSold: Oversold Level//RsiOverBought: OverBought Level//MinBarRange: minimum distance from two consecutive RSI Highs or RSI LowsRge = averagetruerange[10](close)MyRSI = rsi[RsiPeriod](Close)RsiPeriod = 7RsiOverSold = 80RsiOverBought = 20MinBarRange = 5ONCE ShiftText = 3RsiMax = MyRSI < MyRSI[1] and MyRSI[1] > MyRSI[2] and MyRSI[1] > RsiOverBoughtRsiMin = MyRSI > MyRSI[1] and MyRSI[1] < MyRSI[2] and MyRSI[1] < RsiOverSoldif RsiMax thenRSIMax1 = MyRSI[1]High1 = High[1]for I = MinBarRange to 80if RsiMax[I] thenRSIMax2 = MyRSI[I + 1]High2 = High[I + 1]If High1 > High2 and RSIMax1 < RSIMax2 thenDRAWARROWDOWN(barindex, High + Rge / ShiftText)coloured(255,192,203,255)DRAWTEXT("dd", barindex, High + Rge / ShiftText / 0.3,SansSerif,Italic,10)coloured(0,0,255,255)elsif High1 < High2 and RSIMax1 > RSIMax2 thenDRAWARROWDOWN(barindex, High + Rge / ShiftText)coloured(255,192,203,255)DRAWTEXT("hd", barindex, High + Rge / ShiftText / 0.2,SansSerif,Italic,10)coloured(0,0,255,255)endifbreakendifnextendifif RsiMin thenRSIMin1 = MyRSI[1]Low1 = Low[1]for I = MinBarRange to 80if RSIMin[I] thenRSIMin2 = MyRSI[I + 1]Low2 = Low[I + 1]If Low1 < Low2 and RSIMin1 > RSIMin2 thenDRAWARROWUP(barindex, lOW - Rge / ShiftText)coloured(0,0,255,255)DRAWTEXT("dd", barindex, lOW - Rge / ShiftText / 0.3,SansSerif,Italic,10)coloured(0,0,255,255)elsif Low1 > Low2 and RSIMin1 < RSIMin2 thenDRAWARROWUP(barindex, lOW - Rge / ShiftText)coloured(0,0,255,255)DRAWTEXT("hd", barindex, lOW - Rge / ShiftText / 0.2,SansSerif,Italic,10)coloured(0,0,255,255)endifbreakendifnextendifreturn(non testé)
02/21/2020 at 6:41 PM #120187Divergence RSI123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869//RSI Divergences By Frank (Francesco)//Description: the indicator draws arrows on chart as entry points when a direct or an hidden RSI divergence is found.//When a DIRECT divergence is found, "dd" (direct divergence) text is added to chart over (Sell signal) or under (Buy signal) the arrow//When an HIDDEN or INVERSE divergence is found, "hd" (hidden divergence) text is added to chart over (Sell signal) or under (Buy signal) the arrow//Variables://RsiPeriod: number of bars to calculare RSI value//RsiOverSold: Oversold Level//RsiOverBought: OverBought Level//MinBarRange: minimum distance from two consecutive RSI Highs or RSI LowsRsiPeriod = 7MinBarRange = 5Rge = averagetruerange[10](close)MyRSI = rsi[RsiPeriod](Close)RsiOverSold = 80RsiOverBought = 20ONCE ShiftText = 3RsiMax = MyRSI < MyRSI[1] and MyRSI[1] > MyRSI[2] and MyRSI[1] > RsiOverBoughtRsiMin = MyRSI > MyRSI[1] and MyRSI[1] < MyRSI[2] and MyRSI[1] < RsiOverSoldif RsiMax thenRSIMax1 = MyRSI[1]High1 = High[1]for I = MinBarRange to 80if RsiMax[I] thenRSIMax2 = MyRSI[I + 1]High2 = High[I + 1]If High1 > High2 and RSIMax1 < RSIMax2 thenDRAWARROWDOWN(barindex, High + Rge / ShiftText)coloured(255,192,203,255)DRAWTEXT("dd", barindex, High + Rge / ShiftText / 0.3,SansSerif,Italic,10)coloured(0,0,255,255)elsif High1 < High2 and RSIMax1 > RSIMax2 thenDRAWARROWDOWN(barindex, High + Rge / ShiftText)coloured(255,192,203,255)DRAWTEXT("hd", barindex, High + Rge / ShiftText / 0.2,SansSerif,Italic,10)coloured(0,0,255,255)endifbreakendifnextendifif RsiMin thenRSIMin1 = MyRSI[1]Low1 = Low[1]for I = MinBarRange to 80if RSIMin[I] thenRSIMin2 = MyRSI[I + 1]Low2 = Low[I + 1]If Low1 < Low2 and RSIMin1 > RSIMin2 thenDRAWARROWUP(barindex, lOW - Rge / ShiftText)coloured(0,0,255,255)DRAWTEXT("dd", barindex, lOW - Rge / ShiftText / 0.3,SansSerif,Italic,10)coloured(0,0,255,255)elsif Low1 > Low2 and RSIMin1 < RSIMin2 thenDRAWARROWUP(barindex, lOW - Rge / ShiftText)coloured(0,0,255,255)DRAWTEXT("hd", barindex, lOW - Rge / ShiftText / 0.2,SansSerif,Italic,10)coloured(0,0,255,255)endifbreakendifnextendifreturnJ’ai fait ça… mais ça ne marche pas
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
Find exclusive trading pro-tools on
Similar topics: