Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1097
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
Hello, I started to read the MQL4 tutorial (I want to learn how to program), but it is an old version, what would you advise to do?
If you have ever programmed in C, it is better to look through the source code of free indicators, simpler indicators and Expert Advisors and read the help.
If you have not programmed at all, then... If you don't know how to program at all, then read documentation. )))
There is also a tutorial on this forum: https://www.mql5.com/ru/forum/108883
It's just that at first the variable was called ProfitableSerie and had the opposite function. And there's something else to add.
Try it this way. I have a feeling something else will come up...
Another step forward - the bot opened one trade, but that was the end of it. The bot does not open anything else and there are no messages in the log about any attempts...
I wanted to put only part of the code correctly, but then I copied the whole code and did not fix the error. It should be like this in the last condition.
But actually he shouldn't have made a single deal then. Some of the first two conditions are not working correctly. Fix the condition for now, let's see :)
Updade: bring back OnDeinit just in case.
Damn, I wanted to insert only a part of the correct code originally, but then I copied the whole thing and did not correct this error. It should be like this in the last condition
But actually he shouldn't have made a single deal then. Some of the first two conditions are not working correctly. Fix the condition for now, let's see :)
Updade: bring back OnDeinit just in case.
Tried it, after one trade in minus started to open a position on every tick.
Put the first two conditions on the first line
if(GlobalVariableGet("AllowNewOrders") == 1) return;
And try the first test on one pair.
The broker GrandCapital?
Put the first two conditions on the first line
if (GlobalVariableGet("AllowNewOrders") == 1) return;
And try the first test on one pair.
Broker GrandCapital?
}
Yes, Grand Capital. Did you put it in right? It's stopped opening trades again.
Guys, I've already racked my brains. How do I make the EA place pending orders on highs and lows, e.g. 8 candles, with a take profit of 1/4.
I do something like this:
double Vhod1=iHighest(Symbol(),0,MODE_HIGH,8,0);
double Vhod2=iLowest(Symbol(),0,MODE_LOW,8,0);
double TP=((Vhod1-Vhod2)/4)+Vhod1;
I tried to change the parameters, but keeps getting wrong stops or sets the price at 7.00000; it is unclear where it's coming from
Guys, I've already racked my brains. How do I make the EA place pending orders on highs and lows, e.g. 8 candles, with a take profit of 1/4.
I do something like this:
double Vhod1=iHighest(Symbol(),0,MODE_HIGH,8,0);
double Vhod2=iLowest(Symbol(),0,MODE_LOW,8,0);
double TP=((Vhod1-Vhod2)/4)+Vhod1;
I tried to change the parameters, but keeps getting wrong stops or sets the price at 7.00000; it is unclear where it's coming from