A quick script illustrating making your extern inputs as a dropdown list of fixed options. This is what will be seen. Advertisements
Simple script illustrating getting the maximum value in an array. Code identical for MQL4 and MQL5. MT4 output: MT5 output:
There’s a few things that could give the Invalid Prices error from OrderModify. 1. If you are trying to modify price, SL, TP, with the same values as before. 2. If you are trading on an asset which tick size is not the same as the smallest increment of the least significant value, e.g. Nikkei 225 mini … Continue reading
A quick script illustrating how to get the P&L of the last closed trade with MQL5.
MetaTrader 4 updated to Build 646 (30 Apr 2014), and MetaEditor to Build 934 (30 Apr 2014): http://forum.mql4.com/62849 The interesting updates I found are: 3. Terminal: Increased the number of supported email service protocols. Now, alerts and emails from MQL4 applications can be sent to Gmail, Hotmail, Yahoo and other mailboxes. Set the target mailbox … Continue reading