Compiling error......
-
Hi,
Fxdreema starts to give me an error on compiling on ALL my projects, even empty ones..
i tried to close and lunch again.. an also to reinstall it but still the same problem..

Dave
-
PS.
the exported mq4 files doesn't have problems.
I tried to open in metaeditor and it compile it without problems.. -
Interesting...
CHART_IS_OFFLINE is relatively new constant that should exist in the newest versions of MetaTrader. Well, because the MQL4 compiler no longer comes as a standalone file in MetaTrader installations, such compiler is packed in fxDreema and is automatically extracted before compiling a new file. But the compiler that is in fxDreema is also relatively new, so I have no idea from where this error comes from. It works fine for me and I have no other reports about such problem from others.
Anyway, here are the latest compilers by MetaTrade, 32 and 64 bit. These are standalone .exe files and fxDreema searches for them from multiple places. From it's own /Data subfolder or from the folder where MetaTrader is installed. Try to put mql.exe in Data/ and let's see what will happen?
-
Ok, i reinstalled a new version of fxdreema in a new location and copy the new mql.exe to replace the old one but the error was still there.
So i replaceed all files except my user folder and now works..Thank you!!
-
Hi,
when i use "Trade Statistics" on mode "trade count" i have this warnings..
but sometimes EA works ok, sometimes it stops at first block without have any error reported in Journal..
i really can't understand why this different behavior..
now my EA stops and i cant make it go in anyway...
Is there a turn around?
Thanks!
......
Schermata 2015-07-10 alle 19.36.48.png
Schermata 2015-07-10 alle 19.36.48.png -
I just fixed those warnings (web version), but I don't think that they are responsible for stopping the EA from running. Well, I don't know what you mean by "it stops"
-
Yes i notice.. Thanks!
i move the project on web version and no more warnings!
For the moment i tried the EA on Strategy Tester and everything works.
But i'm going to use it on an offline chart and now market is close so no ticks to test it out..
i will let you know! Finger crossed...__Well, I don't know what you mean by "it stops"[/quote:258xi683]
i add the ID number of the block in each STATUS field in each block, to understand what happens..
And looking at STATUS on chart it doesn't go over the first block..
But the EA "is working" because "on chart" functions like click on buttons works fine....PS.:
as i said i'm using it on an offline chart and to make it works i need to manually deactivate the DrawSpreadInfovoid DrawSpreadInfo() { static bool allow_draw = true;and change it to
void DrawSpreadInfo() { static bool allow_draw = false;because of zero divide here
double current_spread = (SymbolInfoDouble(Symbol(),SYMBOL_ASK)-SymbolInfoDouble(Symbol(),SYMBOL_BID))/(CustomPoint(Symbol()));probably becouse the chart haven't set the CustomPoint.
I don't know how to edit the chart properties.
Can you please tell me how to do it or can you add an option to disable the DrawSpreadInfo?Thanks
Dave -
But CustomPoint() is used all around the EA in one way or another
I did some fixes in DrawSpreadInfo, sopefully it will work now. -
Thanks FxDreema! Now no more zero divide error due the SpreadInfo function.
Today i tried again my EA and discovered that is still a problem with "Trade Count" in Trade Statistic.
It count zero trades but i have 5 open now.
It happen both on a live chart and offline chart..https://fxdreema.com/shared/VXuYa1XXc
Can you check please?
Dave -
Update: i have 5 trade open right now, but it count just 1 trade, probably because i've just open it while the EA is running..
Probably it counts just trade opened while it is running?Update: Now i opened 2 more trades and it count a total of 3. Is continuing to ignoring the fisrt 4 trades..
-
Fixed
Some parameters are calculated from the start of the EA - dropdown and things like this. Trades count was also like this, but I moved their calculations in other part of the code
-
WOW!
Thanks again!

-
__But CustomPoint() is used all around the EA in one way or another
I did some fixes in DrawSpreadInfo, sopefully it will work now.[/quote:1au9gtz6]Hi FxDreema
i have again a zero divide error when compiling projects with (web version) here in the DrawSpreadInfo..In July you resolved by adding these lines
double custom_point = CustomPoint(Symbol()); double current_spread = 0; if (custom_point > 0) { current_spread = (SymbolInfoDouble(Symbol(),SYMBOL_ASK)-SymbolInfoDouble(Symbol(),SYMBOL_BID))/custom_point; }but now (probably due to some updates to fxdreema?) in the mq4 i just found
current_spread = (SymbolInfoDouble(Symbol(),SYMBOL_ASK)-SymbolInfoDouble(Symbol(),SYMBOL_BID))/custom_point;Can you check plese?
Thank you!
-
For which block are we talking about now?
-
No blocks.. it is in the output mq4 code after compiling..
under the DrawSpreadInfo() function..
There is no more the check for CustomPoint(Symbol()) = 0like this you add last time
double custom_point = CustomPoint(Symbol()); double current_spread = 0; if (custom_point > 0) -
Oops, forget my post, I read something wrong
-
Ok, I did that. Maybe for some reason I reverted to the old version of this function, I don't remember when and why
-
Sorry but now i can't open anymore 2 out of 3 my projects...
either import them from my mq4 backups..
https://fxdreema.com/shared/23KxGnTIt stuck on "loading"...
i can just create a new project or open just the 3° of my projects (an old one)...
-
I was just fixing some other problem, maybe because of this. I can open all your projects now, can you?