The Expert Advisor places the pending orders at a given distance from the current price and then modifies them after a given time. All goes well, but sometimes the terminal does not allow modification. Then the unmodified order should be deleted. How to do it?
Hello, I'm asking for help, I have a task: Determine the effectiveness of using the Commodity Channel Index technical indicator on the statistical data of the D 1 timeframe of an ordinary share of OJSC Rosneft, I can’t formulate how to write this indicator correctly for opening and closing a long and short position, I seem to be doing but the adviser refuses to compile, gives an error . Please help, this indicator needs to be applied in this listing, I present it without my x changes.
niformalka: Hello, I beg for help, I have a task: Determine the effectiveness of the technical indicator Commodity Channel Index on the statistical data timeframe D1 ordinary shares of JSC "Rosneft", I can not formulate how to properly write this indicator to open and close a long and short positions, I think I do, but the council refuses to compile, gives an error. I think I need help here, I need to apply this indicator to this listing but I have not changed it.
So this is your advisor, not the indicator...Compilation without errors is going on....Now I will play with your code..... hypothetical....
Let's start with the main thing, it's not really wise to go over orders from zero. It's better to start with the last one
for(int i=OrderTotal-1; i>=0; i--) // Цикл перебора ордер
We don't want to get into a situation where we have closed/deleted the zero order and there are more orders on it. If you use the last order on the account, nothing bad happens.
Начнем с главного, не совсем грамотно перебирать ордера с нулевого. Лучше с последнего
Чтобы не возникало ситуации, когда нулевой по счету закрыли/удалили а там ещё ордера есть. всё переколбасилось. Когда действуете с последним по счёту ничего страшного не происходит.
the teacher proves that nothing needs to be changed in the code, except for the lines with opening and closing short and long positions, I did something like this but it does not compile
if ((iCCI(Symbol,0,14,PRICE_TYPICAL,0)<100)&&(iCCI(Symbol,0,14,PRICE_TYPICAL,0)<-100))
Let's start with the main thing, it's not really wise to go over orders from zero. It's better to start with the last one
So that we don't get into the situation where we have closed/deleted the zero order and there are more orders on it. When you act on the last order on the account, nothing bad happens.
You may be using the functions of Igor Kim without looking at them.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
There's nothing to attach it to.
You can do it here:
It is for output in string format, not for calculation.Gentlemen!!! What are you people confused about?
iFractals() returns price, not bar number of fractal.
Yeah, sometimes it's not Friday)))
Hello, I beg for help, I have a task: Determine the effectiveness of the technical indicator Commodity Channel Index on the statistical data timeframe D1 ordinary shares of JSC "Rosneft", I can not formulate how to properly write this indicator to open and close a long and short positions, I think I do, but the council refuses to compile, gives an error. I think I need help here, I need to apply this indicator to this listing but I have not changed it.
So it's an EA, not an indicator...Compiling goes without errors....Now I'll play with your code..... hypotest....
I need to apply exactly the indicator I need in my EA, namely icc, it compiles the source code
Yeah, it's not like it's Friday))
What's wrong with it?
The price returns...
Let's start with the main thing, it's not really wise to go over orders from zero. It's better to start with the last one
We don't want to get into a situation where we have closed/deleted the zero order and there are more orders on it. If you use the last order on the account, nothing bad happens.Начнем с главного, не совсем грамотно перебирать ордера с нулевого. Лучше с последнего
Чтобы не возникало ситуации, когда нулевой по счету закрыли/удалили а там ещё ордера есть. всё переколбасилось. Когда действуете с последним по счёту ничего страшного не происходит.the teacher proves that nothing needs to be changed in the code, except for the lines with opening and closing short and long positions, I did something like this but it does not compile
Let's start with the main thing, it's not really wise to go over orders from zero. It's better to start with the last one
So that we don't get into the situation where we have closed/deleted the zero order and there are more orders on it. When you act on the last order on the account, nothing bad happens.