Betting system
-
hello @fxDreema Does this work on MT5 i am getting an error i want to replace the initial 0.1 with a fixed risk of 2% as well.

-
Helo.
That would be nice, if betting systems (marti, labou, lembert... others) have a option to make first starting lot size depending on (balance, equity, margin). -
But there are probably unlimited options for this. What can be done easily is to put some simple formula in the input field, instead of the lotsize value. Here are some functions that can be used, and they are also easy to be remembered: http://docs.mql4.com/account/accountbalance
-
I mean here, in fxdreema builder (if you chose any betting system). For ''intial volume'' you can chose:
-fixed lotsize
or
-freeze % of equity
-freeze % of balance
-freeze % of free margin -
I understand, but the other MM options are located in the same select menu where Martingale is

-
confused.Please show me how can I make:
http://prntscr.com/8c7cm0 -
Try this value instead 0.1:
0.02*AccountBalance() / MarketInfo(Symbol(),MODE_MARGINREQUIRED)Or this:
(2.0/100)*AccountBalance() / MarketInfo(Symbol(),MODE_MARGINREQUIRED)
... but it's important here to have one of both values - 2 or 100 - written in this way - 2.0 or 100.0. Otherwise 2/100 returns 0 for some stupid reason -
Thank you, working beautiful.
-
@pips-0 Can you please share the link to your project?
-
@l-andorrà https://fxdreema.com/shared/WzEI7QhLb

I am trying to use the code below instead of 0.1:
0.02*AccountBalance() / MarketInfo(Symbol(),MODE_MARGINREQUIRED)Or this:
(2.0/100)*AccountBalance() / MarketInfo(Symbol(),MODE_MARGINREQUIRED)seems its not compartible with mql5 maybe works on mql4, so i would like to have my initial risk at 2% of my account balance instead of having a fixed lot size of 0.1
-
may you please also assist @jstap
-
have you tried putting that code straight into the 0.1 box?
-
@jstap yes and it gives the following errors
Compilation errors
'MarketInfo' - undeclared identifier
')' - expression expected
',' - unexpected token
'Symbol' - some operator expected
')' - unexpected token -
Add a shared project to look at
-
@jstap https://fxdreema.com/shared/YGn6rH2Cd
i used chatgbt to convert the code from mql4 to mql5
-
I'm afraid this goes beyond my capabilities, sorry.
-
I couldn't get this to work by leaving it it the initial lot box, but by adding it to a variable it compiled. I haven't tested but it should be good: https://fxdreema.com/shared/RsYrWzRrb
-
@jstap thank you il test this and advise
-
hi @jstap thank you so much it works well, I have another question how do i open a trade daily at exactly the same time say 08:00, how exactly are the conditions laid out and also is it all under the ontick tab?
-
so to be specific maybe say candle close/open at 08:00, so when its 08:00 every morning a trade just opens