double CalculateProfitOneLot( double entry_price, double exit_price) { double profit= 0 ; if (! OrderCalcProfit ( ORDER_TYPE_BUY , Symbol (), 1.0 ,entry_price,exit_price,profit)) { Print ( __FUNCTION__ ," Failed to calculate OrderCalcProfit (). Error ", GetLastError ()); } return (profit); } #define EXPERT_MAGIC 123456 // MagicNumber of the expert