Multi-Line Comments – MQL4 for Complete Beginners Tutorial Part 6

Hello there! Today’s tutorial is very short – in just over 3-minutes we will get to know how to use multi-line commentary in MQL4. Believe me – it is very easy! At the same time, as you will see multi-line comments are a very powerful tool and can make your programming experience so much more pleasurable: instead of deleting whole blocks of code you can use multi-line comments to “hide” these block away. Commented code will even change colour to show that it will not be executed. 

Get the full course here: https://www.forexboat.com/learn-mql4

Code For This Tutorial

Tutorial6.mq4:
//+------------------------------------------------------------------+
//| Tutorial6.mq4 |
//| Copyright 2014, ForexBoat |
//| http://www.forexboat.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, ForexBoat"
#property link "http://www.forexboat.com"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
/*
int value1 = 15;
int value2 = 10;
int output;

output = value1 * value2; //150

output = value1 + value2; //25

Alert(output);
*/

Alert("Hello there");

}

 

What are you waiting for?

START LEARNING FOREX TODAY!

Tags:
share This:
Avatar
Muhammad Awais

Leave a Reply

Your email address will not be published. Required fields are marked *

What are you waiting for?

START LEARNING FOREX TODAY!

as seen on: