getting price/volume data in MQL5 (or 4)
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
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.