Forum

time difference betwen two prices

Hello guy, how can I catch the time between two prices ? That's how I am trying: if (check == true && OrdersTotal ()== 0 ) { static double firstPrice; static bool firstTest = false ; static bool secondTest = false ; if (firstTest == false ) { firstPrice = Ask; //here I want to catch

Highest & lowest price

Hello, how can I get the highest and lowest price for the last 50 bars ? I'm new at mql and have no idea

Ordertype based on indicator

Hello, I need your help. I want that the ea open an order in the direction which the ea has give his signal but it doesent worked for any reason. Can someone help me? The EA onTick void OnTick () { if (check == false ) { double Equity = AccountEquity(); Verlust = -Equity*RiskPercent* 0.01 ;