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:
enum _ENUM_ORDER_TYPE {Buy, Sell} type;
enum _ENUM_ORDER_TYPE {Buy, Sell}; _ENUM_ORDER_TYPE type;
dear Enivid, i have done the instructions what you said. downloaded then new version and paisted it compiled it and it gave the same errors now what should i do?Mea culpa! I am so sorry! You were copying everything correctly. The problem was with one line of code in RiskCalculator.mq4. Please download version 1.07 - it is fixed there. You can paste only new RiskCalculator.mq4 - other files remained unchanged.
PS: MT5 version was unaffected by this bug, so there is no reason to update from 1.06 to 1.07 if you are using MT5 version of Risk Calculator.
Are you sure that the errors are the same? Could you please paste the screenshot with how it compiles now?dear Enivid, i have done the instructions what you said. downloaded then new version and paisted it compiled it and it gave the same errors now what should i do?
yes Dear i am absolutely sure that they are the same. i took new screenshots also which i am posting here too.Are you sure that the errors are the same? Could you please paste the screenshot with how it compiles now?
I would need to see the top of the Errors tab (like in the Annotation 2020-04-10 150121.png screenshot you attached earlier). But are you sure that the line 7 of RiskCalculator.mq4 says:yes Dear i am absolutely sure that they are the same. i took new screenshots also which i am posting here too.
now what should i do my Hero?
#property version "1.07"
#include <OrderIterator.mqh>
I would need to see the top of the Errors tab (like in the Annotation 2020-04-10 150121.png screenshot you attached earlier). But are you sure that the line 7 of RiskCalculator.mq4 says:
And the line 27 says:MQL4:#property version "1.07"
?MQL4:#include <OrderIterator.mqh>
do i need to attache it to every chart ?or one chart is enough for the all the instrument? i.e. will it calculate the total positions? i mean will it add all the positions TPs and SLs all together if i attach it to one chart only? or should i attach it to every chart i am trading on?
you know what...Attaching it to one chart is enough. It will calculate risk/reward values for all pairs.