Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1584
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
module difference. Without module, only top zone falls into the condition. | OpenPrice - Bid |> 10*_Point opening condition
This is how the condition should be, Bid is lower than OpenPrice and no modules.
Otherwise we will get correct result if Bid is higher than OpenPrice
module difference. Without the module only the top zone falls into the condition. | OpenPrice - Bid |> 10*_Point opening condition
I don't quite get it...
Can you please make it clearer...for a beginner)
You surprise me.
How?
From the picture you can see that OpenPrice - Bid should not be more than 10*_Point
but can be less, including negative
but can be less, including negative
Yeah... and you get the condition with "&& > 0"
What's the question? Just like that, or for something?
Yeah... and you get the condition with "&& > 0"
What's the question? Just like that, or for something?
I'm currently using this definition of the moment to enter the market
I thought there might be a way to simplify it)
Help optimise a piece of code for martin
The task is this:
-after the stop, a Martin will multiply the lot;
-The number of multiplications can be adjusted with function OrdersClose, and when it reaches a specified value, lot will be reset to the starting one;
- the lot volume should not be reset to the starting volume, but must be decreased sequentially in reverse order;
for example OrdersClose=5, Martin=2, lot=0.01:
we have the sequence: 0.01; 0.02; 0.04; 0.08; 0.16 (reset) 0.01; 0.01;,,,,
need: 0.01; 0.02; 0.04; 0.08; 0.16 (reset) 0.16; 0.08; 0.04; .... 0,01.
I don't have enough knowledge to solve the problem myself.
I have tried different combinations, but have not achieved the desired effect.
I am currently using this definition of market entry point
I thought there might be a way to simplify it)
And Alexey has it right))
This is how it should be by condition, Bid below OpenPrice and no modules.
Otherwise we get correct result if Bid is higher than OpenPrice
Fixed)
Yes, correct. Did not change the condition. Out of habit. It confuses in the picture that Bid is in the middle))))
But there second condition, entry is the same in number of conditions.
Help optimise a piece of code for martin
The task is this:
-after the stop, a Martin will multiply the lot;
-The number of multiplications can be adjusted with function OrdersClose, and when it reaches a specified value, lot will be reset to the starting one;
- the lot volume should not be reset to the starting volume, but must be decreased sequentially in reverse order;
for example OrdersClose=5, Martin=2, lot=0.01:
we have the sequence: 0.01; 0.02; 0.04; 0.08; 0.16 (reset) 0.01; 0.01;,,,,
need: 0.01; 0.02; 0.04; 0.08; 0.16 (reset) 0.16; 0.08; 0.04; .... 0,01.
I don't have enough knowledge to solve the problem myself.
I have tried entering different combinations, but have not achieved the desired effect.
And Alexei has it right))
Yes, that's right. Didn't change the condition. Out of habit. It's confusing in the picture that Bid is in the middle)))
Thanks, but it doesn't simplify my code in any way)