Forum

How to can I read the Position type?

Hello, everyone I am new to MQL5, and I need some help in reading the opened Position Type (if it is Buy or Sell - int type) //--- variables for returning values from position properties double open_price; double initial_volume; long positionID; double position_profit; int

How to store the value of a global variable until redeclaring it?

Hello, everybody, i am quite new to MQL4 programming , and i have a problem :) if ( OrdersTotal ()== 0 ) { double account_ballance= AccountBalance (); GlobalVariableSet ( "account ballance(start)" , account_ballance); } As a result to the coding above, i would like to have a global