//+------------------------------------------------------------------+ //| callfromcall.mq4 | //| Copyright 2017, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2017, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property version "1.00" #property strict //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ double firstsellopentime() { double firstsellopentime=0; for(int x=0;xfirstsellopentime()) secondsellopentime=OrderOpenTime(); } } return(secondsellopentime); } //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //- //INSTRUCTIONS: //MANUALLY OPEN 2 DIFFERENT SELLS, AND THEN HAVE IT SELECT THE SECOND SELL WITH secondsellopentime() FUNCTION. // pd. POSSIBLE ACCORDING TO ONLINE BUT IT DOES NOT WORK , EXAMPLES ARE REAL VAGUE THAT IVE FOUND? Alert("firstsellopentime() = ",firstsellopentime()); Alert("secondsellopentime() = ",secondsellopentime()); } //+------------------------------------------------------------------+