Traduzione codice TW Rsi Sar
- This topic has 4 replies, 4 voices, and was last updated 2 weeks ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
Similar topics:
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Traduzione codice TW Rsi Sar
Buongiorno,
richiedo cortese traduzione codice in oggetto, che vorrei testare.
Grazie per il consueto supporto.
https://www.tradingview.com/script/NI0Qhwy7-Parabolic-RSI-ChartPrime/
Ecco qui:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
//------------------------------------------// //PRC_Parabolic RSI //version = 0 //14.05.2025 //Iván González @ www.prorealcode.com //Sharing ProRealTime knowledge //------------------------------------------// // Inputs //------------------------------------------// len=14 // RSI Length upper=70 // Overbought level lower=30 // Oversold level increment = 0.02 initial = 0.02 limite = 0.2 //------------------------------------------// // RSI calculation //------------------------------------------// src=rsi[len](close) //------------------------------------------// // Parabolic SAR (RSI) //------------------------------------------// srchigh=src+1 srclow=src-1 if barindex<=len+2 then Lparabolic=srclow islong=1 af=limite hp=srchigh lp=srclow else if islong then Lparabolic=Lparabolic+af*(hp-Lparabolic) Lparabolic=min(Lparabolic,srclow[1]) Lparabolic=min(Lparabolic,srclow[2]) else Sparabolic=Sparabolic+af*(lp-Sparabolic) Sparabolic=max(Sparabolic,srchigh[1]) Sparabolic=max(Sparabolic,srchigh[2]) endif reverse=0 if islong then if srclow<Lparabolic then isLong=0 reverse=1 Sparabolic=hp lp=srclow af=initial endif else if srchigh>Sparabolic then islong=1 reverse=1 Lparabolic=lp hp=srchigh af=initial endif endif if reverse=0 then if islong then if srchigh>hp then hp=srchigh af=af+increment af=min(af,limite) endif else if srclow<lp then lp=srclow af=af+increment af=min(af,limite) endif endif endif endif if islong then psarRSI=Lparabolic r=255 g=82 b=189 else psarRSI=Sparabolic r=0 g=255 b=229 endif //------------------------------------------// // Signals //------------------------------------------// sigUp=islong<>islong[1] and islong and psarRSI<=lower sigDn=islong<>islong[1] and islong=0 and psarRSI>=upper if sigUP or sigDn then drawpoint(barindex,psarRSI,5)coloured(r,g,b,90) endif //------------------------------------------// return src as "RSI" style(line,2), psarRSI as "Parabolic SAR rsi" style(point,2)coloured(r,g,b), upper as "OB level" style(dottedline),lower as "OS level" style(dottedline) |
Non si vedono i quadratini sul grafico.
Si vedono dei pallini, invece dei quadratini (rombi), come vedi dalla foto X.
Se preferisci i rombi (vedi foto Y), sostituisci l’intera riga dove c’è l’istruzione DRAWPOINT (basta che tu la commenti), con questa:
1 |
drawtext("◆",barindex,psarRSI,dialog,bold,35)coloured(r,g,b,90) |
Find exclusive trading pro-tools on