from Source file to program

 

Hi All,


need help with transforming a Source File into a running program for MT5. 

It's my first time. Thanks

 
Poron: Hi All, need help with transforming a Source File into a running program for MT5. It's my first time. Thanks

You will need to use the MetaEditor (open it by pressing F4) to compile the source code ... How to Create an Expert Advisor or an Indicator - Algorithmic Trading, Trading Robots - MetaTrader 5 Help

More details about MetaEditor can be found in its built-in help files of that application.

How to Create an Expert Advisor or an Indicator - Algorithmic Trading, Trading Robots - MetaTrader 5 Help
How to Create an Expert Advisor or an Indicator - Algorithmic Trading, Trading Robots - MetaTrader 5 Help
  • www.metatrader5.com
The trading platform contains a built in programming language MetaQuotes Language 5 ( MQL5 ), the MetaEditor development environment and strategy...
 
When I Compile my code I get Error like this   -  ';' - open parenthesis expected strategy2.mq5 27 48
But in this line all fine. Thi sis Code -   stopLossPrice = lastLow + 5 * Point; // Stop Loss
How I can do this?


 
Doston Roziqov #:
When I Compile my code I get Error like this   -  ';' - open parenthesis expected strategy2.mq5 27 48
But in this line all fine. Thi sis Code -   stopLossPrice = lastLow + 5 * Point; // Stop Loss
How I can do this?


post your code using Alt-s or the code button </>

 
Doston Roziqov #:
When I Compile my code I get Error like this   -  ';' - open parenthesis expected strategy2.mq5 27 48
But in this line all fine. Thi sis Code -   stopLossPrice = lastLow + 5 * Point; // Stop Loss
How I can do this?


It is either _Point, or Point(). But not Point.

But I guess, you actually mean:

... + (5.0 * _Point)