Questions from Beginners MQL5 MT5 MetaTrader 5 - page 323
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.e. as I understand it, when receiving data after this print and the message in the logbook
Wait Data for GBPUSD
the test proceeds according to the algorithm?
I.e. as I understand it, when receiving data after this print and the message in the logbook
the test goes according to the algorithm?
mistakes in 2,3,5,8 lines
if (CloseFriday == TRUE && DayOfWeek() == 5 && TimeCurrent() >= StrToTime(CloseFridayHour + ":00")) return (0);
op = NormalizeDouble(Bid,Digits);
tp = NormalizeDouble(Bid - (TakeProfit)*Point,Digits);
if (TakeProfit==0) tp=0;
sl = NormalizeDouble(Bid + (StopLoss)*Point,Digits);
if (StopLoss==0) sl=0;
CalcLot();
Ticket=OrderExists(OP_SELL);
if (Ticket<MaxTrades && OrderSymbol()==Symbol())
if (Ticket==-1)
But which line should it be in? If it's in OnInit() - everything below it won't work... OnCalculate() starts working. We are testing with not fully initialized GBPUSD indicator.
Understood. Thank you. This hasn't happened before...
OnCalculate() is starting to work.
Good afternoon dear forum users.
Please tell me the reason why the cycle does not repeat.
This is my first test creation, so-so do not judge severely).
Thanks in advance.
Good afternoon dear forum users.
Can you please tell me the reason why the cycle does not repeat.
This is my first test creation, so-so do not judge severely).
Thanks in advance.
Good evening. Put the variable kolpos in the body of start().
Hello, everyone!
Here is the situation.
The Expert Advisor works on TF M15.
At the same time I can not copy price data for older TFs ( for example CopyHigh(Symbol,PERIOD_D1,0,period,Hi_array) )
cannot copy more than a year. In general it's not surprising, because the synchronization results show about 25 thousands 15M bars, which is exactly a year.
How can I get data for a longer period? Should I synchronize it to D1 or do I have another way?
Metatrader4 745build, how to insert a script for a previous version, scripts do not work
Please specify what exactly you want to do?
- insert the scriptcode into an indicator or Expert Advisor
- compile the script code
Describe what errors occur (when compiling, look at the "Errors" tab, when launching in the terminal, look at the "Experts" tab).