Hi, does anyone know how to make the color inputs available as ENUM variables?


Hi, does anyone know how to make the color inputs available as ENUM variables?


Hi, I often use the NormalizeDouble function in a custom code block to have comennts show a set number of digits.. However, I find this function not be working very well. The coments seem to sometimes print with the set number of digits, but quite often switsches to 10 digits and then jumping back to the set digits.. Is anyone aware of another way to make sure that a comment only prints a set number of digits?
https://fxdreema.com/shared/ZB6OWbckb

Thanks for your reply @jstap That unfortuanetely only collects the lot volume opened by an EA with the same magic number. I dont know how to store total lots open on the account, regardles if they are opened by an EA or manually..
Hi, im trying to store the total lot volume open on an account. So all positions opened, either manually opened trades or trades opened by an EA. I never really had succes with the "on trade event data", so i might go about this the wrong way. Any help will be much appreciated. Thanks
@l-andorrà Any hints how to convert/translate it? I was looking at the TimeToString() function, but didnt find a way to get the correct output..
Hi, i am trying to store the date and time on the first tick after initialisation. I cant find a way to store it as YYYY.MM.DD. instaed it gets stored as a double. Can anyone help me to figure this out?
https://fxdreema.com/shared/8Y296UFI

Hi, i trying to make an EA that opens one position once loaded on the chart.
For every closed trade it should check the type (buy/sell) of the last position.
If last position was a buy - then open a sell
If last position was a sell - then open a buy
I have been trying so many different ways, but simply cant get it to work as intended. It should be simple, and it is driving me mad.. Any help will be appreciated.
Here is the project:
https://fxdreema.com/shared/jmL8913sb
@l-andorrà ok, thanks for your answer! If I find a solution I will share it here:)
Hi, does anyone know if it is possible to imbed the code of an custom indicator directly into the code of the EA, either directly inside fxdreema or inside the mq4/5 code in metaeditor. In the case of the latter, does anyone know where to paste the indicator code?
I would like to make it so that the custom indicator is not needed in the indicator folder on the users pc.
I did find an old thread here on the forum, but no solutions were given..
@jstap Grat thanks once again! much apppreciated:)
Hi guys, I am trying to make a simple EA based on bollinger bands. I want to have a pending sell limit order at the top band with tp at the mid band.
Once the sell limit order is filled, i want to trail the tp once per bar at the bb mid band. I have tried so many different ways, but still I am not able to modify the take profit level once per bar. Can someone see what i do wrong?
https://fxdreema.com/shared/UalocD0yd
happy weekend!
I found a solution using bucket of trades block. Here is the link in case anyone else needs it https://fxdreema.com/shared/dGzw2Maxb
Hi, I am tying to store the total volume of open positions and pending orders in a variable.
With the "in loops" function I can get the volume of a single order, but is it possible to get the total volume of all open orders?
https://fxdreema.com/shared/Xkl37zMbc

Hi,
I have made an EA with fxdreema that i would like to upload for selling on the mql5 market place. However, i run into some errors in the automated validation process.
Specifically I need to write a check that only allows further trades or pending orders if current volume is below max allowed volume. I am able to get the max volume allowed per symbol with SymbolInfoDouble and SYMBOL_VOLUME_MAX, but I do not know how to get the current open volume either in open orders or pending orders.
I need to make a condition that only allows positions if current volume is less than max allowed volume.
this is the article explaining the checks that needs to be in place to pass the validation: https://www.mql5.com/en/articles/2555
If anyone thinks they can help me, please hit me a DM.
I will of course compensate you for your time.
@l-andorrà it has to do with the max volume allowed per symbol. On my broker I do not get any errors as there is no volume limit as long as there is enough free margin in account balance. But apparently in the test mql5 runs as part of the validation process there is a max volume allowed per symbol.
So I need to find a way to first retrieve what the max volume is on the broker mql5 does the validation test on. I am able to do that by creating a variable called max_volume and then use the below line of code in a custom mql5 code block
max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_LIMIT);
Then i need to make a condition before my "buy/sell pending order" block that only allows pending orders to be placed if the volume of the pending order is below max_symbol
This line of code should hold the answer, but I cant really figure out how to convert that into a condition block in fxdreema. I need to
if(max_volume==0) volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX);
I now face a new issue during the validation process on mql5 marketplace.
I get the error "[Volume limit reached]"
It has to do with the maximum orders allowed. I do not get any errors on my own broker, but apparently it does retuen errors in the validation process on mql5.
I have found some threads on the mql5 forum, but I have not been able to implement the suggestions successfully. Has anyone here experience with this issue and how to solve it?
I post the link to the discussions on the mql5 forum here:
I solved the issue and post it here in case anyone faces the same: https://fxdreema.com/shared/S21yRTWqc
@jstap yeah, I have it on random delay, so that should simulate slippage.. I will look into it tomorrow and post my findings here
@jstap I tested in mt5 strategy tester. Will try it on live trading, set slippage to 0 and se if pending orders are triggered or not.