Forum

issue on getting open price using HistoryOrderGetDouble(trans.position,ORDER_PRICE_OPEN)

Dears... I'm trying to get the open price of an order which already closed in MQL5 as i want to open a position on SL hit, I used HistoryOrderGetDouble (trans.position,ORDER_PRICE_OPEN) the trans.position return the order number properly. but this function return 0 as open price of the order. i

How to extend price History in Strtegy tester

Dears, first of all currently i'm using MQL5 for coding and during my coding on a strategy, i figured out there is a limited amount of history exist on each timeframe during backtesting . as an example there is almost one year data exist for H1 timeframe over back test. this means if i start from

MQL5 - Issue is reading from file on EA - Wrong values captured

Dears, as it is clear in subject i want to work with file in EA inside MQL5. be informed below code tested on MQL4 and worked properly. Also i know i should insert file in EA separately to be used (another WHY in MQL5) using below code #property tester_file "ALL_2018.csv" i created an array of

MQL5 - How to check if Position/Order closed in EA

Dears, first of all let me explain after many years working on MQL4 due to a project team decided to re- create EA on MQL5 again. As I'm new to this language, I'm looking for some concepts from the old one in this. them please excuse me if my question looks stupid or easy to manage as I couldn't

Issue in getting data from iCCI in MQL5 vs MQL4

Dears, first of all let me tell you i'm not new to programming and i wrote many indicators and Experts in MQL4. but i'm new to MQL5 and i've got some issue in using iCCI or similar basic functions based on written instructions. i had one script/indicator in MQL4 and i tried to translate it to MQL5