'ACCOUNT_FREEMARGIN' is deprecated, use 'ACCOUNT_MARGIN_FREE' instead and 'POSITION_COMMISSION' is deprecated
-
I am using FXDreema, and recently I encountered some errors after compiling the code generated by FXDreema using MetaEditor. Please help me fix the errors shown in the image

-
I'm not a programmer, but the only solution I imagine is searching for those commends on the code and modify them accordingly. However, I have no idea if that can be harmful or not. Any programmer her to confirm?
-
Hello there nthung.
Just change ACCOUNT_FREEMARGIN to ACCOUNT_MARGIN_FREE, it is a predefined constant used by Metatrader. Be glad that the sistem gave you the answer itsefl. There are other cases where that dosent occurs like with POSITION_COMMISSION. However, i havent try this with a live account, still building my advisor and using it in demo account. Be aware of unpredictable flaws.
I hope the deprecated predefined constants will be updated by developers in fxdreema soon. -
@fxDreema it would be greatly appreciated if you could update fxDreema functions to be in accordance to the recent MetaQuotes changes.
Very annoying to have these compiler warnings that are mentioned previously in this thread that we have no control of.