ONCE MyCapital = 100
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)
ENDIF
Buy N shares at market
Endif
Hallo ich möchte gern probieren, wie sich das Ergebnis der Strategie verändert, wenn nach jedem Verlust-Trade das Risiko (N) verdoppelt wird?
Kann mir da jemand helfen
Versuchen Sie diese Version:
ONCE MyCapital = 10000
ONCE MyProfit = 0
ONCE MyRisk = 5 //5%
ONCE tempRisk = MyRisk
MyEquity = MyCapital + StrategyProfit
X=close*3/100
IF StrategyProfit < StrategyProfit[1] then
tempRisk = tempRisk * 2
ELSIF StrategyProfit > StrategyProfit[1] then
tempRisk = MyRisk
endif
If not longonmarket and close crosses over average[100] and time>=160000 AND time <=220000then
N = 1
if MyEquity > MyCapital THEN
N = (MyEquity * tempRisk / 100)
ENDIF
Buy N shares at market
set stop ploss 20
set target pprofit 200
Endif
graph temprisk