Page 1 of 1

Scratty's RiskManager (Donational)

Posted: Fri Nov 05, 2010 3:06 pm
by scratty
I wrote an EA for the Riskmanaging purposes of Trading which are described in this forum. I want to see if there is some interest in it here. I will give a short introduction...

Functionality:
===========

- Weekly Profit/Loss calculation
- Warning signals for weekly P/L
- Closing in loss with a specified tf (bar closed under average price)
- averaging price calculation and visualisation
- SL calculation to stay at the same risk level as specified (SL are not in the markets and so it is possible to set them very close to the market... good for broker limitations)
...

I will post some images to show you how it works.

Posted: Fri Nov 05, 2010 3:22 pm
by scratty
Here we go...


RiskManager is running as EA (see upper right corner)

On the left are the weekly account and risk information as:
- Weekly start balance
- weekly loss limit (input param. for EA)
- weekly loss limit balance
- current week P/L
- 1st unit lot size (based on input param. for EA)

Posted: Fri Nov 05, 2010 3:30 pm
by scratty


if you open a position there are some position specific information available as:
- Position average price (calculated with lot size/price)
- Position size (total)
- Position Pip value (in $)
- Position Risk
- Position Profit

On the chart you see the average sell price as green line and the SL in red.

Posted: Fri Nov 05, 2010 3:35 pm
by scratty
And here are the input parameters:



- visualizeTrades (enable entry/exit visualization for the trades)
- mailNotification
- maxWeeklyRisk (Risk % allowed per week)
- maxPositionRisk (Risk % allowed per position)
- firstUnitSLPoints (SL in Pips from first entry unit)
- timeFrameForCloseLoss (Timeframe on which a bar has to close in loss to exit position)

Posted: Fri Nov 05, 2010 5:11 pm
by adaseb
Hey do you by any chance know how to program Ninjatrader scripts?

Posted: Sat Nov 06, 2010 5:29 pm
by scratty
hi adaseb

no, sorry. Im not coding ninjatrader...