//+------------------------------------------------------------------+ //| Predefined Variables.mq5 |
Try it with a mq4 compiler.
Try it with a mq4 compiler.
Thanks Keith - So I download Met Trader 4 from https://www.metatrader4.com/en/download but what I get is MetaEditor 5. How do I get the mq4 instead??

- www.metatrader4.com
Thanks Keith - So I download Met Trader 4 from https://www.metatrader4.com/en/download but what I get is MetaEditor 5. How do I get the mq4 instead??
What is the platform? MT4 or 5?
MT4 compiler is build 2302 (click help then about)
MT5 compiler is build 2361
both are version 5.
- mmaghraby: How do I get the mq4 instead??
If you had used this (before posting,) you would have found (among 100+) Where to download MT4? - General - MQL5 programming forum 2017.04.31
It has been years since you could download MT4 from Metaquotes. You can only get it from a broker's website.
Where to download the orginal MT4 installer - MQL4 programming forum 2018.01.29Or the "clean MT4" download link:
MT4 download - MT4 - General - MQL5 programming forum #2 - Please edit your (original) post and use the CODE
button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Predefined functions are not working. They are not turning into Pink color and so I get an error that it is an undeclared identifier. Any ideas??
//+------------------------------------------------------------------+
//| Predefined Variables.mq5 |
//| Mostafa |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Mostafa"
#property link "https://www.mql5.com"
#property version "1.00"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
double askPrice = Ask;
}
//+------------------------------------------------------------------+