30 USD
Open

convert simple metatrader ea to to ctrader

Payment method:  Direct Payment Job posted on 21 Jun 2019, 22:34
giovanni_brunosince: 21 Jun 2019

 

#import "c:\EURUSD.dll"   
   int set_bid1(int);
   int set_ask1(int);
#import
extern int sleep=10;
string Pair1="EURUSD";//Cross1 
string suf,shorName;
int init()
{
  EventSetMillisecondTimer(sleep);
  if (StringLen(Symbol())>6){  string suf=StringSubstr(Symbol(), 6, StringLen(Symbol()));} 
  return(0);
}
void OnTimer()
  {
	if(!IsDllsAllowed())Alert(" Enable DLL ");  
/* 
 datetime ExpireTime=D'2019.06.27';
  if(TimeCurrent()>=ExpireTime)
  {
      ObjectsDeleteAll(ChartID(),0);
      Comment("EA has been expired, please contact bfxsuarl@gmail.com ");
      return;
  }
   */   
      Comment("Working..."+Hour()+":"+Minute()+":"+Seconds());
      RefreshRates();      
      set_bid1(MarketInfo(Pair1+suf,MODE_BID)/MarketInfo(Pair1+suf,MODE_POINT));
      set_ask1(MarketInfo(Pair1+suf,MODE_ASK)/MarketInfo(Pair1+suf,MODE_POINT));
      set_time(TimeGMT());   
   return(0);
}

script send quote pair selected to .dll

 

Vladimir since: 21 Jun 2019
55 days ago

Hey.


I can help you.
Send me please details at svtelet@gmail.com


Vladimir

Reply