Risk Calculator

corvuxs

Trader
Mar 14, 2019
1
1
11
33
Colombia
hello this is awesome indicator it helps me a lot take control from my grid trading is possible to make a similar indicator or add the function taking care take profits positions? in other words a Reward calculator or add this function to this one thanks .
 
  • Like
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
12,050
457
114
Odessa
www.earnforex.com
View attachment 14163

got this errors while compiling metatrader5, installed correctly on mt4
Thank you for reporting this! It looks like MT5 Build 2085 changed how enum declarations work. It looks like now it is not possible to declare inline enum variable like this:
MQL5:
enum _ENUM_ORDER_TYPE {Buy, Sell} type;
You have to declare it like this:
MQL5:
enum _ENUM_ORDER_TYPE {Buy, Sell};
_ENUM_ORDER_TYPE type;
I have updated Risk Calculator to version 1.04 to fix this. It should compile well under MT5 now. MT4 files did not change except for the version number, so you do not need to update it.