corvuxs

Trader
Mar 14, 2019
1
1
11
38
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 .
 
  • 👍
Reactions: Enivid

Enivid

Administrator
Staff member
Nov 30, 2008
19,298
1,529
144
Odesa
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.
 
Apr 10, 2020
9
0
17
Persia
Hi
where exactly should i paste the include folder in MQL4 Directory? there is already exist an include folder.
i have pasted it and it gave me 97 errors and 2 warning. i went through the forum and i understood i am pasting it in a wrong place. please provide me more information regarding the installation of this specific indicator. it is confusing me as i can not compile it also.
for the first time when i pasted them it gave me 4 error an 1 warning. then i pasted the include folder in few other folder but now it is giving me lot more error .
i need it very much,
thanking you in advance
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,298
1,529
144
Odesa
www.earnforex.com
Both Include and Indicators folders should be pasted directly in the MQL4 folder. It will add files to your existing Include and Indicators folders there. Make sure to choose to overwrite when doing so.

The following files should be in your /MQL4/Include:
DOMObject.mqh
OrderIterator.mqh
OrderMap.mqh
RemainingOrderObject.mqh
StatusObject.mqh

The following files need to be in your /MQL4/Indicators:
RiskCalculator.mq4

You need to compile only one file - RiskCalculator.mq4 in your /MQL4/Indicators folder. If you still get errors, please take a screenshot of them (all) and post it here. Thanks!
 
  • 👍
Reactions: milo_of_ persia
Apr 10, 2020
9
0
17
Persia
hi
i have pasted the files exactly as you have mentioned but still there are 97 errors.
i am attaching the screenshot of the entire log.
i have taken the screenshots of the directory where i have pasted them too


please help me to resolve this situation
 

Attachments

  • Annotation 2020-04-10 150121.png
    Annotation 2020-04-10 150121.png
    62.2 KB · Views: 2
  • Annotation 2020-04-10 150211.png
    Annotation 2020-04-10 150211.png
    64.7 KB · Views: 2
  • Annotation 2020-04-10 150249.png
    Annotation 2020-04-10 150249.png
    65.9 KB · Views: 0
  • Annotation 2020-04-10 150336.png
    Annotation 2020-04-10 150336.png
    61.3 KB · Views: 0
  • Annotation 2020-04-10 150423.png
    Annotation 2020-04-10 150423.png
    63.6 KB · Views: 0
  • Annotation 2020-04-10 150542.png
    Annotation 2020-04-10 150542.png
    64.8 KB · Views: 0
  • Annotation 2020-04-10 150634.png
    Annotation 2020-04-10 150634.png
    72.9 KB · Views: 1

Enivid

Administrator
Staff member
Nov 30, 2008
19,298
1,529
144
Odesa
www.earnforex.com
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.
 
  • 👍
Reactions: milo_of_ persia
Apr 10, 2020
9
0
17
Persia
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.
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?
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,298
1,529
144
Odesa
www.earnforex.com
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?
Are you sure that the errors are the same? Could you please paste the screenshot with how it compiles now?
 
  • 👍
Reactions: milo_of_ persia
Apr 10, 2020
9
0
17
Persia
Are you sure that the errors are the same? Could you please paste the screenshot with how it compiles now?
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?
 

Attachments

  • Annotation 2020-04-11 095646.png
    Annotation 2020-04-11 095646.png
    62.6 KB · Views: 1
  • Annotation 2020-04-11 095725.png
    Annotation 2020-04-11 095725.png
    61.5 KB · Views: 1

Enivid

Administrator
Staff member
Nov 30, 2008
19,298
1,529
144
Odesa
www.earnforex.com
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?
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:
MQL4:
#property version   "1.07"
And the line 27 says:
MQL4:
#include <OrderIterator.mqh>
?
 
Apr 10, 2020
9
0
17
Persia
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:
MQL4:
#property version   "1.07"
And the line 27 says:
MQL4:
#include <OrderIterator.mqh>
?

hi
yes i have added the code and now it is working very well.
i am extremely thanks full to you.
i have a question but...
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?
regards
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,298
1,529
144
Odesa
www.earnforex.com
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?

Attaching it to one chart is enough. It will calculate risk/reward values for all pairs.
 
  • 👍
Reactions: milo_of_ persia
Apr 10, 2020
9
0
17
Persia
Attaching it to one chart is enough. It will calculate risk/reward values for all pairs.
you know what...
you people are the new prophets who literally are having their own religion and preachers. i believe people should come and pilgrimage you rather than any idol or spirituality or any holy place or school or person. you people are the real sample of a modern human and THE real Saints.
i dont know how to thank you...
i just can send huge positive waves and energy which i am sure, you will receive in your life