Conversion TradingView indicateur CM-RSI
Forums › ProRealTime forum Français › Support ProBuilder › Conversion TradingView indicateur CM-RSI
- This topic has 4 replies, 2 voices, and was last updated 6 years ago by
Plscap.
Viewing 5 posts - 1 through 5 (of 5 total)
-
-
07/07/2018 at 11:08 PM #75556
Bonjour Nicolas et bonjour à tous,
Quelqu’un aurait-il la possibilité et l’extrême gentillesse de convertir cet sorte de RSI (Connors) issu de TradingView?
Je vous remercie par avance.
Vous trouverez ci dessous le code et une capture.1234567891011121314151617181920212223/Created by ChrisMoody//Based on Larry Connors RSI-2 Strategy - Lower RSIstudy(title="_CM_RSI_2_Strat_Low", shorttitle="_CM_RSI_2_Strategy_Lower", overlay=false)src = close,//RSI CODEup = rma(max(change(src), 0), 2)down = rma(-min(change(src), 0), 2)rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))//Criteria for Moving Avg rulesma5 = sma(close,5)ma200= sma(close, 200)//Rule for RSI Colorcol = close > ma200 and close < ma5 and rsi < 10 ? lime : close < ma200 and close > ma5 and rsi > 90 ? red : silverplot(rsi, title="RSI", style=line, linewidth=4,color=col)plot(100, title="Upper Line 100",style=line, linewidth=3, color=aqua)plot(0, title="Lower Line 0",style=line, linewidth=3, color=aqua)band1 = plot(90, title="Upper Line 90",style=line, linewidth=3, color=aqua)band0 = plot(10, title="Lower Line 10",style=line, linewidth=3, color=aqua)fill(band1, band0, color=silver, transp=90)07/23/2018 at 1:38 PM #7651207/23/2018 at 8:06 PM #76547bon après-midi, je pense que ce serait quelque chose comme ça :
1234567891011121314151617181920212223242526272829//Created by ChrisMoody//Based on Larry Connors RSI-2 Strategy - Lower RSI//study(title="_CM_RSI_2_Strat_Low", shorttitle="_CM_RSI_2_Strategy_Lower", overlay=false)//RSI CODEup =WilderAverage[2](max(close-close[1],0))down =WilderAverage[2](-min(close-close[1], 0))rs = 100 - (100 / (1 + up / down))//Criteria for Moving Avg rulesma5 = average[5](close)ma200= average[200](close)//Rule for RSI Colorif close > ma200 and close < ma5 and rs < 10 thenr=0g=255b=0elsif close < ma200 and close > ma5 and rs > 90 thenr=255g=0b=0elser=192g=192b=192endifreturn 90 coloured(0,255,255)style(line,3)as "Upper line 90",10 coloured(0,255,255)style(line,3)as "Lower Line 10",rs coloured(r,g,b) style(line,2) as "rsi"07/23/2018 at 8:29 PM #76551Désolé, il me manquait deux lignes…
12345678910111213141516171819202122232425262728//Created by ChrisMoody//Based on Larry Connors RSI-2 Strategy - Lower RSI//study(title="_CM_RSI_2_Strat_Low", shorttitle="_CM_RSI_2_Strategy_Lower", overlay=false)//RSI CODEup =WilderAverage[2](max(close-close[1],0))down =WilderAverage[2](-min(close-close[1], 0))rs = 100 - (100 / (1 + up / down))//Criteria for Moving Avg rulesma5 = average[5](close)ma200= average[200](close)//Rule for RSI Colorif close > ma200 and close < ma5 and rs < 10 thenr=0g=255b=0elsif close < ma200 and close > ma5 and rs > 90 thenr=255g=0b=0elser=192g=192b=192endifreturn 100 coloured(0,255,255)style(line,3)as "Upper Line 100",0 coloured(0,255,255)style(line,3)as "Lower Line 0", 90 coloured(0,255,255)style(line,3)as "Upper line 90",10 coloured(0,255,255)style(line,3)as "Lower Line 10",rs coloured(r,g,b) style(line,2) as "rsi"1 user thanked author for this post.
07/24/2018 at 8:47 AM #76569 -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)
Find exclusive trading pro-tools on
Similar topics: