MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
- www.mql5.com
MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
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
First of all let me say that I am entirely new to MQL programming. But I'd like to know how you can access previous price/volume action to do calculations with it. I think it must be something like this (taking the price as an example)i = price
i = 0
if (price[i] < price[i + 1] && price[i + 1] < price[i + 2]){ // price[i] is the price of today and price[i+1] is the price of yesterday
send signal
}
Can anyone please translate this order to MQL, or give a good link.