Risk Management Indicator

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Risk Management Indicator

Postby LeTigre30 » Mon Apr 08, 2013 12:17 am

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 1914 times

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


The indicator was revised and updated
Attachments
RiskManagement.PNG
Original RiskManagement Indicator Chart
RiskManagement_1.PNG
Modified RiskManagement_1 Indicator Chart
User avatar
LeTigre30
FXCodeBase: Initiate
 
Posts: 173
Joined: Sun Dec 19, 2010 5:10 am
Location: Nimes (France)

Re: Risk Management Indicator

Postby LeTigre30 » Mon Apr 08, 2013 12:40 am

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.
Attachments
RiskManagement_1_ErrorLots.PNG
RiskManagement_1_ErrorLots.PNG (7.14 KiB) Viewed 5519 times
User avatar
LeTigre30
FXCodeBase: Initiate
 
Posts: 173
Joined: Sun Dec 19, 2010 5:10 am
Location: Nimes (France)

Re: Risk Management Indicator

Postby ShadyFX » Wed Jul 10, 2013 10:46 am

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
ShadyFX
 
Posts: 1
Joined: Wed Jul 10, 2013 10:35 am

Re: Risk Management Indicator

Postby trendwatch » Fri Jul 26, 2013 5:13 am

Hi,

Stop input. Do I have to enter stop+spread or just the stop?
trendwatch
 
Posts: 33
Joined: Wed Jul 13, 2011 2:49 am

Re: Risk Management Indicator

Postby Apprentice » Thu Jun 01, 2017 10:42 am

Indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Risk Management Indicator

Postby fortesan9 » Thu Apr 01, 2021 5:01 pm

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
Attachments
RMI.xlsx
idea spreadsheet
(21.63 KiB) Downloaded 262 times
fortesan9
 
Posts: 52
Joined: Tue May 05, 2020 10:15 pm

Re: Risk Management Indicator

Postby Apprentice » Fri Apr 02, 2021 3:56 am

Your request is added to the development list.
Development reference 330.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Risk Management Indicator

Postby Apprentice » Fri Apr 09, 2021 1:28 pm

It's unclear what fields should be defined by the user and what should be calculated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Risk Management Indicator

Postby fortesan9 » Fri Apr 09, 2021 2:17 pm

RMI2.xlsx
(29.75 KiB) Downloaded 239 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.
fortesan9
 
Posts: 52
Joined: Tue May 05, 2020 10:15 pm

Re: Risk Management Indicator

Postby Apprentice » Mon Apr 12, 2021 11:26 am

Your request is added to the development list.
Development reference 349.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36435
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 49 guests