Stop loss % of capital
Forums › ProRealTime English forum › General trading discussions › Stop loss % of capital
- This topic has 4 replies, 4 voices, and was last updated 6 years ago by GraHal.
-
-
07/02/2018 at 3:59 AM #7504307/02/2018 at 8:00 AM #75054
I see you are still messing around with money management when your efforts would be better used on getting a basic strategy up and running on level stakes! 🙂
I do not understand why you would want to do what you are requesting. The markets do not know or care how much capital you have so basing your stop loss level on this is of no benefit at all. Your variable level stop loss should be based on how the markets are moving currently. Volatility would be a better measure to use than cash in the bank!
07/02/2018 at 9:38 AM #75063I haven´t tested but I think something like this should work:
123456CAPITAL = 1000 //Your initial capitalIF POSITIONPERF < -0.01*(CAPITAL+STRATEGYPROFIT) THENSELL AT MARKETEXITSHORT AT MARKETENDIFI tend to agree with Vonasi, the stops probably are better related to the position itself not the overall performance
But as I heard recently from someone (not remember who): “The moneymanagement doesn´t have any importance, until it means everything”
1 user thanked author for this post.
07/24/2018 at 5:37 AM #76563I tried this but it didnt work.
I did find this however but cannot alter it to my conditions. Any thoughts? Stoploss and stoplevel confuse me??
123456789101112131415161718192021222324252627282930313233343536373839404142REM Money ManagementCapital = 3000 // initial capital at launch of the strategyRisk = 3 // risk in percentREM Calculate contractsequity = Capital + StrategyProfitmaxrisk = round(equity*(Risk/100))REM defining moving averagesEMA5 = exponentialaverage[25]EMA100 = exponentialaverage[100]EMA200 = exponentialaverage[600]hh = highest[10](high)ll = lowest[10](low)// -- case BUYif EMA5 crosses over EMA200 thenstoploss = (close-ll[1])/pointsizestoplevel = (close-ll[1])PositionSize = abs(round((maxrisk/StopLoss)/PointValue)*pipsize)BUY PositionSize SHARES AT MARKETendif// -- case SELLif EMA5 crosses under EMA200 thenstoploss = (hh[1]-close)/pointsizestoplevel = (hh[1]-close)PositionSize = abs(round((maxrisk/StopLoss)/PointValue)*pipsize)SELLSHORT PositionSize SHARES AT MARKETendif// -- trades exitif EMA5 crosses under EMA100 thenSELL AT MARKETendifif EMA5 crosses over EMA100 thenEXITSHORT AT MARKETendifSET STOP LOSS stoplevel07/24/2018 at 7:26 AM #76565Any thoughts? Stoploss and stoplevel confuse me??
Re below … for a market where pointsize / pipsize = 1 (DAX for example) then stoploss and stoplevel would be the same, but for a market where pointsise / pipsize = something other than 1 (0.0001 for EUR/USD for example) then stoploss and stoplevel are NOT the same.
12stoploss = (hh[1]-close)/pointsizestoplevel = (hh[1]-close)Anyway I’ve never ever used the term stoplevel … isn’t it just that the code Author has used that term stoplevel in that code / strategy and they could have used myStop / whatever and it be a lot less less confusing?? 🙂
Same goes for stoploss, don’t confuse stoploss with Set Stop Loss … two different things. I would have used myStop1 for stoploss and mystop2 for stoplevel in the code in your post above. Reason: enough things confuse me so I would not want to add more confusion! 🙂
I stand to be corrected on my assertions above … maybe I am confusing myself? 🙂
-
AuthorPosts
Find exclusive trading pro-tools on