Importer un code source depuis trading view
Forums › ProRealTime forum Français › Support ProBuilder › Importer un code source depuis trading view
- This topic has 11 replies, 3 voices, and was last updated 5 years ago by  Sanglier. Sanglier.
- 
	
		
- 
		
			
				
04/19/2020 at 6:12 PM #126918Bonjour est-il possible d’utiliser le code source d’un indicateur créer par la communauté trading view sur prt ? merci d’avance // 
 // @author LazyBear
 // List of all my indicators: https://www.tradingview.com/v/4IneGo8h/
 //
 study(shorttitle = “SQZMOM_LB”, title=”Squeeze Momentum Indicator [LazyBear]”, overlay=false)length = input(20, title=”BB Length”) 
 mult = input(2.0,title=”BB MultFactor”)
 lengthKC=input(20, title=”KC Length”)
 multKC = input(1.5, title=”KC MultFactor”)useTrueRange = input(true, title=”Use TrueRange (KC)”, type=bool) // Calculate BB 
 source = close
 basis = sma(source, length)
 dev = multKC * stdev(source, length)
 upperBB = basis + dev
 lowerBB = basis – dev// Calculate KC 
 ma = sma(source, lengthKC)
 range = useTrueRange ? tr : (high – low)
 rangema = sma(range, lengthKC)
 upperKC = ma + rangema * multKC
 lowerKC = ma – rangema * multKCsqzOn = (lowerBB > lowerKC) and (upperBB < upperKC) 
 sqzOff = (lowerBB < lowerKC) and (upperBB > upperKC)
 noSqz = (sqzOn == false) and (sqzOff == false)val = linreg(source – avg(avg(highest(high, lengthKC), lowest(low, lengthKC)),sma(close,lengthKC)), 
 lengthKC,0)bcolor = iff( val > 0, 
 iff( val > nz(val[1]), lime, green),
 iff( val < nz(val[1]), red, maroon))
 scolor = noSqz ? blue : sqzOn ? black : gray
 plot(val, color=bcolor, style=histogram, linewidth=4)
 plot(0, color=scolor, style=cross, linewidth=2)04/19/2020 at 6:16 PM #12692004/19/2020 at 6:19 PM #12692104/19/2020 at 6:20 PM #12692404/19/2020 at 6:22 PM #126925Chaque fois que vous survolez votre avatar, une boîte de recherche apparaît. Ne soyez pas timide! 04/19/2020 at 6:28 PM #12692704/20/2020 at 8:20 AM #126987https://www.prorealcode.com/prorealtime-indicators/squeeze-momentum-indicator/ Il doit s’agir du même indicateur de mémoire. Autres posts de la library liés au squeeze : https://www.prorealcode.com/tag/squeeze/ 04/21/2020 at 7:21 PM #12732004/22/2020 at 9:38 AM #127407Je vois ce dont il s’agit. La prochaine fois merci de respecter les règles de publication pour les demandes de conversion de code: Demande de conversion de code gratuite Je vais y regarder dés que possible. 04/23/2020 at 9:11 AM #12755904/23/2020 at 9:56 AM #127571L’indicateur a été convertit et est désormais disponible dans notre bibliothèque de code pour ProRealTime: Squeeze Momentum Indicator 04/23/2020 at 1:51 PM #127602
- 
		AuthorPosts
			Find exclusive trading pro-tools on 


 
		 
		 
		