BOSS und Supertrend zusammen fügen Fehler!
Forums › ProRealTime Deutsch forum › ProBuilder Support › BOSS und Supertrend zusammen fügen Fehler!
- This topic has 3 replies, 3 voices, and was last updated 1 year ago by GraHal. 
- 
	
		
- 
		
			
				
04/11/2024 at 8:31 AM #231387Hallo Freunde, ich versuche die BOSS Strategy mit einem Supertrend SL zusammen zu führen, 
 leider hab ich un Zeile 18 immer noch einen Fehler drin, ich kanns einfach nicht.
 Kann mir jemand das fixen?
 Dankeschön:// BOSS mit Supertrend Stop 
 // Kaufbedingung für BOSS
 indicator1 = Average[40] * 1.032
 c1 = close >= indicator1// BOSS-Verkaufsbedingung 
 indicator2 = Average[40] * 0.968
 c2 = close <= indicator2// Supertrend-Indikator 
 atrLength = 3.5
 mult = 19
 atr = AverageTrueRange[14](atrLength)
 upperST = high + atr * mult
 lowerST = low – atr * mult// Berechnung des Supertrend-Indikators 
 trendUp = close[1] > upperST[1] ? Max(upperST, trendUp[1]) : trendUp[1]
 trendDown = close[1] < lowerST[1] ? Min(lowerST, trendDown[1]) : trendDown[1]// Supertrend-Kaufbedingung 
 c3 = close > trendUp// Supertrend-Verkaufsbedingung 
 c4 = close < trendDown// Kauf- und Verkaufsbedingungen 
 if (c1 and c3) then
 Buy 500 SHARES AT MARKETif (c2 or c4) then 
 Sell AT MARKET// Plot Supertrend 
 Plot(trendUp, “Supertrend Upper”, green)
 Plot(trendDown, “Supertrend Lower”, red)04/11/2024 at 9:21 AM #23139204/12/2024 at 7:08 AM #231424Hallö, 
 ich bin kein Coder habs mit chatgpt versucht, leider immer noch Fehler drin, seht mal, kann mir jemand das fixen?
 Danke:// BOSS mit Supertrend Stop 
 // Kaufbedingung für BOSS
 indicator1 = Average[40] * 1.032
 c1 = close >= indicator1// BOSS-Verkaufsbedingung 
 indicator2 = Average[40] * 0.968
 c2 = close <= indicator2// Supertrend-Indikator 
 atrLength = 3.5
 mult = 19
 atr = AverageTrueRange[14](atrLength)
 upperST = high + atr * mult
 lowerST = low – atr * mult// Berechnung des Supertrend-Indikators 
 trendUp = close[1] > upperST[1] ? Max(upperST, trendUp[1]) : trendUp[1]
 trendDown = close[1] < lowerST[1] ? Min(lowerST, trendDown[1]) : trendDown[1]// Supertrend-Kaufbedingung 
 c3 = close > trendUp// Supertrend-Verkaufsbedingung 
 c4 = close < trendDown// Kauf- und Verkaufsbedingungen 
 if c1 and c3 then
 Buy 500 SHARES AT MARKET
 ENDIFif c2 or c4 then 
 Sell AT MARKET
 ENDIF// Plot Supertrend 
 Plot(trendUp, “Supertrend Upper”, green)
 Plot(trendDown, “Supertrend Lower”, red)06/13/2024 at 5:11 PM #2338481Hier bist du, ich habe es für dich in Gang gebracht ...123456789101112131415161718192021222324252627282930313233343536373839// BOSS with Supertrend Stop// Buy condition for BOSSDEFPARAM CUMULATEORDERS = Falseindicator1 = Average[40](close) //* 1.032c1 = close >= indicator1// BOSS sell conditionindicator2 = Average[40](close) //* 0.968c2 = close <= indicator2// Supertrend-IndikatoratrLength = 3mult = 1 //19atr = AverageTrueRange[14]( close)upperST = high[1] + atr * multlowerST = low[1] - atr * mult// Berechnung des Supertrend-IndikatorstrendUp = close > upperST[1] // ? Max(upperST, trendUp[1]) : trendUp[1]trendDown = close < lowerST[1] // ? Min(lowerST, trendDown[1]) : trendDown[1]// Supertrend buy conditionc3 = trendUp// Supertrend sell conditionc4 = trendDown// Buying and selling conditionsif c1 and c3 thenBuy AT MARKETENDIFif c2 and c4 thenSellSHORT AT MARKETENDIF// Plot Supertrend//Plot(trendUp, "Supertrend Upper", green)//Plot(trendDown, "Supertrend Lower", red)AN
- 
		AuthorPosts
			Find exclusive trading pro-tools on 



 
		 
		 
		