Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1092

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
Reinstalling the OS. How to restore after OS reinstallation MT4 to the state it was in before reinstallation.
Indicators, Expert Advisors, scripts; templates, profiles; accounts
Afternoon.
An adviser based on an arrow indicator.
Sell on the upper fractal, buy on the lower one. In work max. 1 order. But there is an error somewhere, because the Expert Advisor does not take into account the fractals and opens only in buy. Or it won't open at all (if we change the offset in iCustom). I have tried to insert a different condition into the Expert Advisor (on the crossover of the arrow). Everything works, but it does not take data from the arrow indicator.
indicator:
Code from the owl:
Tried all sorts of solutions already, it's not working. Please tell me where the error is.
Good afternoon.
Help me find the opening price of the first bar on Tuesday and fix it so that I can calculate from it all week.
Thank you.
Hello, I would be grateful if somebody could tell me what to put here so that the EA stops opening pending orders after they trigger.
//+------------------------------------------------------------------+Good afternoon.
Help me find the opening price of the first bar on Tuesday and fix it so that I can calculate from it all week.
Thank you.
Looks like MetaTrader glitches: has anyone experienced a hang-up when trying to enter a procedure?
Here is a simple code
void OnInit()
{
...
Print("Outside procedure");
StartBuy(Price, Take, Stop, Lot);
...
}
void StartBuy(double Price, double Take, double Stop, double Lot)
{
Print("Inside procedure");
....
}
It produces one line Outside procedure and then the tester hangs. What is it?
Looks like MetaTrader glitches: has anyone experienced a hang-up when trying to enter a procedure?
Here is a simple code
void OnInit()
{
...
Print("Outside procedure");
StartBuy(Price, Take, Stop, Lot);
...
}
Stop trading in the inite, that's what it means. How many times have I told that inite must have a minimum of code with the fastest termination of execution, but still there is someone who is too lazy to read. There are standard predefined functions to run a program.
And the inite is like an int, not an input, with return of the reason for termination, by the way, I recommend to use it that way.
Hello, I would be grateful if somebody could tell me what to put here so that the EA stops opening pending orders after they trigger.
//+------------------------------------------------------------------+datetime TimeBarB,TimeBarS;
TradingAllowed = true;
{
b++;
TradingAllowed = false;
s++;
TradingAllowed = false;
}
if (b == 0 && s == 0) TradingAllowed = true;
Somehow...
Отставить торговать в ините, вот что значит. Сколько уже повторяли что в ините должен быть минимум кода с максимально быстрым завершением исполнения, всё равно найдется кто-нибудь, кому лень читать. Есть же стандартные предопределенные функции для работы программы.
Да и инит типа инт, а не войд, с возвратом причины прекращения работы, между прочим, рекомендую так им и пользоваться.