Anzahl der Aktien beim kauf
Forums › ProRealTime Deutsch forum › ProOrder Support › Anzahl der Aktien beim kauf
- This topic has 8 replies, 2 voices, and was last updated 3 years ago by axmichi. 
- 
	
		
- 
		
			
				
03/11/2022 at 7:06 PM #189816Hallo ich habe einen einfachen Code der so lautet if not longonmarket and my condition Then Buy 1 shares at market Es wird eine Aktie gekauft Ich möchte aber, das je nach Abstand vom Entryprice zum SL 100 $ riskiert werden sollen Der SL ist so: X=(AverageTrueRange[37](close))*10 SET STOP LOSS X Ist also der SL 5 Dollar vom Tradeprice entfernt, sollen 20 Aktien gekauft werden. Ich hoffe das geht zu machen Vielen Dank! 03/11/2022 at 8:02 PM #18981703/13/2022 at 11:49 AM #189902#1 #1123456MyRisk = 100X=(AverageTrueRange[37](close))*10if not longonmarket and my condition ThenN = MyRisk / XBuy N shares at marketEndif#2 #2123456789101112ONCE MyCapital = 100ONCE MyProfit = 0ONCE MyRisk = 5 //5%MyEquity = MyCapital + StrategyProfitX=(AverageTrueRange[37](close))*10if not longonmarket and my condition ThenN = 1if MyEquity > MyCapital THENN = (MyEquity * MyRisk / 100)ENDIFBuy N shares at marketEndif03/27/2022 at 8:49 AM #190573Hallo, ich möchte den oberen Code gern so verändern, dass 100 Risk sich aus 3 % Risiko SL ergeben Ich hab das versucht aber das funktioniert nicht: MyRisk = 100 
 X=Tradeprice*0.03N = MyRisk / X Buy N shares at market Danke sehr Risk 3 prozent123456MyRisk = 100X=(AverageTrueRange[37](close))*10if not longonmarket and my condition ThenN = MyRisk / XBuy N shares at marketEndif03/28/2022 at 11:32 AM #190646Wollen Sie das https://www.prorealcode.com/topic/nur-fur-1-vom-kapital-kaufen/ ? 04/03/2022 at 6:40 AM #19108904/05/2022 at 3:23 PM #191245Da ist er: 1234567891011ONCE MyRisk = 100 //100 €MyLots = MyRisk / closeIF Not OnMarket THENIF close CROSSES OVER Average[100,0](close) THENBUY MyLots CONTRACTS AT MARKETELSIF close CROSSES UNDER Average[100,0](close) THENSELLSHORT MyLots CONTRACTS AT MARKETENDIFENDIFSET TARGET pPROFIT 100SET STOP pLOSS 10005/21/2022 at 8:16 PM #193612123456789101112ONCE MyCapital = 100ONCE MyProfit = 0ONCE MyRisk = 5 //5%MyEquity = MyCapital + StrategyProfitX=close*3/100If not longonmarket and c1 and time=starttime thenN = 1if MyEquity > MyCapital THENN = (MyEquity * MyRisk / 100)ENDIFBuy N shares at marketEndifHallo, dieser code soll so viele aktien kaufen das der Stop loss = close *3 % die 5% myrisk der equity ergibt. Das heißt, wenn die equity bei 15 000 steht dann sind 5 % = 750 $, wenn der tradeprice 1000 beträgt und der sl 3% = 30 dann wird gerechnet 750/30 = 25 aktien ich bekomme es nicht in den code rein.. Danke euch 05/21/2022 at 8:22 PM #193613ich habe es so versucht aber es geht nicht?! ONCE MyCapital = 1000 
 ONCE MyProfit = 0
 ONCE MyRisk = 5 //5%
 MyEquity = MyCapital + StrategyProfit
 X=close*3/100
 If not longonmarket and c1 and time=starttime then
 N = 1
 if MyEquity > MyCapital THEN
 N = (MyEquity * MyRisk / 100)
 n1=N/x
 ENDIF
 Buy n1 shares at market
 Endif
- 
		AuthorPosts
			Find exclusive trading pro-tools on 


 
		 
		 
		