Page 1 of 2

Risk Management Indicator

PostPosted: Mon Apr 08, 2013 12:17 am
by LeTigre30
Hello to All,

I have downloaded the Risk Management Indicator from FXCM Apps Store : RiskManagement.lua

Unfortunately, this indicator prints the labels on Upper-Right, Upper-Left, Bottom-Right and Bottom-Left corners of the chart.

If, as me, you have a lot of indicators on the same chart, the Risk Management informations are not readable. So, I have modified the source code to have the possibility to place labels on the verticals Center-Right and Center-Left of the chart.

Also, I have added in the source code, the possibility to choose the currency of the account in a list, AUD, CAD, CHF, EUR, GBP, JPY, NZD and USD (as I have not found the way to retrieve the Account currency from the table "Accounts" see my last post http://fxcodebase.com/code/viewtopic.php?f=17&t=34179).

Find enclosed the files RiskManagement_1.lua and RiskManagement_1.lua.rc for the different languages (you can modify the translations if those are not correct).

RiskManagement_1.lua
(15.82 KiB) Downloaded 1915 times

RiskManagement_1.lua.rc
(10.91 KiB) Downloaded 1374 times


The indicator was revised and updated

Re: Risk Management Indicator

PostPosted: Mon Apr 08, 2013 12:40 am
by LeTigre30
In addendum to my first post :
I have observed an issue in the label "TradeSize" nnn Lots.
I explain : per example I take a risk of 20 %, and leave Stop Pips at 75 and Limit Pips at 100 (the original values in the original indicator), the original source code sends 24082 Lots.
This value is an error as it is not possible to open a position of 24082 Lots in XAU/USD with a MMR od 3.00 EUR / Lot : necessary equity = 24082 * 3.00 = 72246 EUR !!! for an equity of 69520.72 it is not possible.

I will correct this issue in the next improvement of this indicator.

Re: Risk Management Indicator

PostPosted: Wed Jul 10, 2013 10:46 am
by ShadyFX
I've been having problems with the original Risk Management indicator it constantly misjudges proper stop loss amount per trade. I soon realized it may be because my account is in GBP. Unfortunately, I only trade and never really had any coding experience. So could you help me installing this .lua.rc for GBP accounts.

Gleatly appreciated

Re: Risk Management Indicator

PostPosted: Fri Jul 26, 2013 5:13 am
by trendwatch
Hi,

Stop input. Do I have to enter stop+spread or just the stop?

Re: Risk Management Indicator

PostPosted: Thu Jun 01, 2017 10:42 am
by Apprentice
Indicator was revised and updated.

Re: Risk Management Indicator

PostPosted: Thu Apr 01, 2021 5:01 pm
by fortesan9
Dearest FXCodebase & Co,

Would it be possible to integrate additional financial calculations (ideas attached in excel file) and in the style or structure (please forgive) of the INFO Overlay https://fxcodebase.com/code/viewtopic.p ... 10#p133154 is presented.

Best,
fortesan9

Re: Risk Management Indicator

PostPosted: Fri Apr 02, 2021 3:56 am
by Apprentice
Your request is added to the development list.
Development reference 330.

Re: Risk Management Indicator

PostPosted: Fri Apr 09, 2021 1:28 pm
by Apprentice
It's unclear what fields should be defined by the user and what should be calculated.

Re: Risk Management Indicator

PostPosted: Fri Apr 09, 2021 2:17 pm
by fortesan9
RMI2.xlsx
(29.75 KiB) Downloaded 240 times

My apologies,

Attached is the revised spreadsheet, yellow cells are User Defined and white cells are Calculations.

P.D. An additional chart is plotted for grafical purposes.. I think the indicator would look sofisticated if one is added.

Re: Risk Management Indicator

PostPosted: Mon Apr 12, 2021 11:26 am
by Apprentice
Your request is added to the development list.
Development reference 349.