Questions from Beginners MQL4 MT4 MetaTrader 4 - page 63

 
Vitaly Muzichenko:

Let me repeat: it is better not to mix the two languages, but to write it as it should be written. Yes, it is not an easy task, but the result will be many times better.

Is there an explanation with proof?
 
Andrei:
Is there an explanation with proof?
What's there to prove, that you don't need to plug in lefty libraries with trade function translation from four to five?
 
Andrei:
How is this?

Forum on trading, automated trading systems and testing trading strategies

Expert Advisors: Spreader

fxsaber, 2016.09.03 11:18

You can check this in the MT5 tester.

// Это MT5-советник, который позволяет запускать соответствующий
// MT4-советник в мультивалютном MT5(Hedge)-тестере (с реальными тиками)

// https://www.mql5.com/ru/code/16006
#include <MT4Orders.mqh>
#include <MQL4_to_MQL5.mqh>

//#include "Spreader_v1.mq4" // https://www.mql5.com/ru/code/9484
#include "Spreader_v2.mq4" // https://www.mql5.com/ru/code/9495

void OnTick()
{
  start();
}

Result of multicurrency backtest with default settings in EURUSD M1 OHLC mode

Details are in the report file.

 
Vitaly Muzichenko:
And what is there to prove, that you don't need to plug in lefty libraries with trade function translation from fours to fives?
Well you yourself recommend to use left codes and examples and then how do you know where the right one is? Is there no human description of the trading functions without these guesswork?
 
Hello! I don't quite understand where to write void, where to write simply return; where return(0), when I should write simply OnTicK(). I used to write int start() everything was clear. Now everything is mixed up, with this fucking update.... I'm learning by Kovalev, but it's outdated, what should I do? I can't ask anyone, they were almost born with this knowledge! How can I learn the whole thing......................
 
I don't seem to be dumb.
 
I have studied the third part of the textbook. as usual, i find a lot of videos on youtube. of course they are outdated, or the first lesson contains knowledge that takes up half the book. A question begs to be asked what category of people these videos are made for? Probably for super people, but what should we do?
 
FOTOGRAF14:
i have studied the third part of the textbook. as usual, i find a lot of videos on youtube. of course they are outdated or the first lesson contains knowledge that takes up half the book. So one may ask what category of people these videos are made for? Probably for super people, but what should we do?

To start with, learn the basics


https://www.mql5.com/ru/docs/basis

https://www.mql5.com/ru/docs/runtime

Документация по MQL5: Основы языка
Документация по MQL5: Основы языка
  • www.mql5.com
Основы языка - справочник по языку алгоритмического/автоматического трейдинга для MetaTrader 5
 
If I could just get a little more direction, I'd be fine! Everyone says write the codes, write the codes. I couldn't agree more! There's a way out! I need some exercises to practice!!! If someone gave them to me, I would write them and show them to check them.
 
Michail_David:
Thanks for the advice. I'll put a minimum and maximum allowable value on the account into the program. About the step... My lots are already calculated with MarketInfo(Symbol(),MODE_LOTSTEP). I think it would be enough for the step. What do you think?
If everything will work as intended, yes. But there are always some ways to make a thing, as well as to spoil it ;)
Reason: