Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 706
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If you open with this volume:
0.029
it will open 0.02 lots
it will open 0.03 lots.and if it opens with that volume:
How do I calculate the number of decimal places?
for example, i found out that the minimum lot is 0.01.
how do i deduce that the number of decimal places is 2?
to normalise the order volume to two decimal places.
The terminal simply discards all extra signs.
If we open with this volume:
it will open 0.02 lots.
it will open 0.03 lots.and if you open with that volume:
What if you need to open 0.25 lots? Here are ready and working functions, read them and use them.
https://www.mql5.com/ru/forum/131859/page8#comment_3359730
multiplicator:
e.g. we put the value in the function: 7 lots.
The broker has a minimum lot volume of 5 and a lot increment of 2.
here's my lot normalization f-function, I've been using it for a long time, no one has complained yet. There you can find out the lot increment and then round it up to the number of digits of the lot increment.
Well, if you found a server that has a lot step, for example, 0.37, then there is only addition and comparison to the required lot in the loop, but there were no such servers, it seems there are non-standard lots on bitcoin, not engaged, I do not know, you need a specific situationGood day dear colleagues, please help me correctly spell the condition in my EA for entering a trade on SHI_silvertrend_signal indicator signals on binary options, only OP_SELL and OP_BUY. for M1 and M5. The signal comes at the close of the previous candle.
- To open an order at the moment of the signal from the indicator, only on the first candle after the signal
- not longer than 5 seconds from the moment the signal is received.
- Acceptable price change within Slippage
(The indicator has 2 buffers)
from the indicator comment// both buffers to be filled with zeros. Otherwise there will be rubbish when changing timeframe.
Thanks in advance for your help and support!
The code of the indicator itself (I found it on the internet, if publishing the code does not contradict the forum rules?)
Igor Makanu:
(What a twist. matmax, then matmin. )
where is the optimisation key missing?
how to optimise???
Please advise how to correctly specify the condition for entering a trade on the indicator signal.
I wrote a simple advisor for Renko charts that looks like this:
I am not very happy with the offline chart and have decided to combine it with the AG_Renko_Chart indicator. I am attaching it to my message.
But here is how the function that returns the renko value on the right edge:
I can't figure out how to distinguish between downward or upward bar... And how to properly prescribe a function that would not make a lot of trades ...
In general, my head is not thinking straight. Help please!!!!
where is the optimisation key missing?
how to optimise???
Is this a joke or a social joke???
Is this a joke or are you making fun of society?
It's not a joke and that's not how I'm mocking society.
Take a good look at the picture before you post heresy.
it's not a joke and that's not how I mock.
Look at the picture carefully before you post heresy.
The problem is the screen resolution.