@s00071609 A bit late to the party here but this is a very simple solution by using Market Properties:
https://fxdreema.com/shared/QdX8oPs0e
Best posts made by albyxx
-
RE: GMT Time not Working as expectedposted in Questions & Answers
-
Just for fun - how fast is the MQL5 programming language?posted in General Discussions
I’ve been wondering how fast the MQL5 programming language actually is so I made a tiny script using fxDreema to test it.
MQL5 is based on C++ and it is known to be pretty quick.
The script is very simple, it will run a specified amount of iterations of a “while loop” and on completion print results to the experts tab.Here it is:
https://fxdreema.com/shared/tgzUPoVUbIn the Custom MQL Code block a counter will continue to add 1 to itself until it reaches the setpoint.
The while loop will then complete and the result will be printed to the experts tab.If you want to try it you can either save it as an .mq5 file and compile it or compile it directly as an .ex5 file and put it in your MT5 scripts folder.
From there just pull it onto any chart and specify how many billions of loops you want it to run.If I run 100 billion loops on my PC it takes about 87 seconds to complete or in other words about 1.15 billion loops per second; that’s quite impressive!!
I have an Intel i9 10900k.I ran the same test in Python and it was about 75 times slower.
But, note that a trading EA has many blocks with a huge amount of fxDreema underlying code so any EA will obviously be many thousands of times slower than this test script.
Always try to keep your code efficient.
Have fun!!
-
My connection to fxdreema.com has been very unreliable latelyposted in Questions & Answers
Is it just me or has the fxDreema server been very poor for everyone?
I am in Brazil but have an excellent internet connection at 600Mbps up and down here locally and to NY and London over 100Mbps up and down.
I have tried 2 different PC's, tried both Firefox and Chrome and restarted my router various times but no improvement.
Extremely frustrating!!Looking forward to some feedback.
Thanks!!
Latest posts made by albyxx
-
My connection to fxdreema.com has been very unreliable latelyposted in Questions & Answers
Is it just me or has the fxDreema server been very poor for everyone?
I am in Brazil but have an excellent internet connection at 600Mbps up and down here locally and to NY and London over 100Mbps up and down.
I have tried 2 different PC's, tried both Firefox and Chrome and restarted my router various times but no improvement.
Extremely frustrating!!Looking forward to some feedback.
Thanks!! -
RE: Block"for each trade"Affects backtesting speedposted in Bug Reports
@TXZZ you've probably already looked into this but is it necessary to process these blocks every tick?
Your EA would be MUCH more efficient if you could process these blocks every M1, M5 or maybe even a higher TF? -
RE: fxdreema is working in un normal way pls fix ..tksposted in Bug Reports
@bacharchoura1 no need to be sorry.
Try to invest some time into studying as much as you can in the fxDreema builder menus and work out how it all functions and you will save yourself a lot of time in the future. -
RE: fxdreema is working in un normal way pls fix ..tksposted in Bug Reports
@bacharchoura1 are you aware that you can "normalize" the block ID numbers automatically?
Go to Options -> Project Options -> Project Blocks: Normalize IDs.
-
RE: 'ACCOUNT_FREEMARGIN' is deprecated, use 'ACCOUNT_MARGIN_FREE' instead and 'POSITION_COMMISSION' is deprecatedposted in Questions & Answers
@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. -
RE: candle size count in pipsposted in Questions & Answers
Calculations can vary a lot from one broker to another, especially with indices.
The only reliable way to know how a particular broker calculates pips, points, and lot sizes is to do your own testing by opening positions and seeing what happens.
Unless you are very courageous and ready to make costly mistakes, test on a demo account of the broker you use. -
RE: EA notification coming too muchposted in Questions & Answers
As @jstap suggested, this should work:

-
RE: EA notification coming too muchposted in Questions & Answers
@fishhy While there is no trade present and your condition block is true it will send a notification every execution.
Add a once per bar block or make sure the condition can only be executed once.
Also note that MetaQuotes restrict the amount of notifications that can be sent.
See here:
https://www.mql5.com/en/docs/network/sendnotification -
RE: Draw lineposted in Questions & Answers
So now you know how it works, apply it to your needs and build up your EA.
Good luck.