Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1471
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
I have found one stable statistical pattern in the tester, which has been steadily producing profits with acceptable drawdowns since 2008. I need to test it on different pairs and frames etc.
But I need to test it using several parameters simultaneously. Optimization takes unreal much time. And I've already written a code that tests what I need much faster. And now I'm improving my code, i.e. I want it to work even faster in the tester, or as fast as possible. The main algorithm in my code is opening orders at 30 points after each local minimum. So I try to do it as quickly as possible.
Your task will be easier if you can explain how you identify the local extremum.
If the Fractals indicator is suitable for that, then you should check on the second bar for the presence of a fractal and from this value you should calculate the necessary 30 points or pips... whatever you like.
The check in your code is not a load, but if you really want to try it, try it.
Tried it. Opens the wrong orders again (in terms of time, price and quantity)
Your code.
Thanks for the help.
Your task will be easier if you can explain how you identify the local extremum.
If the Fractals indicator is suitable for that, then you check on the second bar for the presence of a fractal and count the necessary 30 points or pips... whatever you like.
If by an extremum we mean the local minimum after which the order is opened, this minimum is defined by checking the minimum price value on each tick or candlestick. And this is exactly what I am struggling with. I want everything to happen much faster in order to open orders at positions I need.
If an extremum is understood to be a local low after which an order is opened, that low is determined by checking the minimum price value on each tick or candlestick. And this is exactly what I am struggling with. I want everything to happen much faster in order to open orders at positions I need.
The extremum is a local minimum or a local maximum. How do you define it?
Your task will be easier if you can explain how you identify the local extremum.
If the Fractals indicator is suitable, then you check on the second bar for the presence of a fractal and from this value you calculate the necessary 30 points or pips... whatever you like.
I think the fractal indicator does not suit me. It will miss many orders.
The order opened by my code with the price check at each tick is highlighted in blue. I think, the fractal indicator does not say anything necessary to me in this case.
An extreme is a local minimum or local maximum. How do you define it?
In my case, it is a minimum.
What is it
how is it initialised?
It depends on where you put it
For example between the opening of two adjacent orders. That is, remember the bar of the last open order and open an order as soon as the price is above the low that this function defines by 30 points. But in this case, this function has to be called on every tick. Change the shill for the soap.......
Changing a shill for a soap.......
I tweaked ...try
What is it
how is it initialised?