is server down? no trades being made on strategy tester?

To add comments, please log in or register
cowmodee
64
cowmodee  
anyone else?
Marco vd Heijden
Moderator
8415
Marco vd Heijden  

Strategy tester does not use the trading server.

Only once to get data but that would mean you just installed a fresh copy is that the case ?

cowmodee
64
cowmodee  
Marco vd Heijden:

Strategy tester does not use the trading server.

Only once to get data but that would mean you just installed a fresh copy is that the case ?

#include<Trade\Trade.mqh>
CTrade trade;
void OnTick()
  {
        double Ask=NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_ASK),_Digits);  
        double Bid=NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID),_Digits);        
   string signal="";
      MqlRates PriceArray[];
      ArraySetAsSeries(PriceArray,true);     
      int Data =CopyRates(_Symbol,_Period,0,3,PriceArray);
      double EAArray[]; 
      ArraySetAsSeries(EAArray,true); 
      int iVIDyADefinition =iVIDyA(_Symbol,_Period,3,5,0,PRICE_CLOSE); 
      CopyBuffer(iVIDyADefinition,0,0,3,EAArray);
      float iVIDyAVALUE=EAArray[0];
      if (iVIDyAVALUE>PriceArray[1].close)
      signal="sell"; 
      if (iVIDyAVALUE<PriceArray[1].close)
      signal="buy";    
   if (signal =="sell" && PositionsTotal()<1)
   trade.Sell(1,NULL,Bid,0,(Bid-150 * _Point),NULL);
   if (signal =="buy" && PositionsTotal()<1)
   trade.Buy(1,NULL,Ask,0,(Ask+150 * _Point),NULL); 
   Comment ("The current signal is: ",signal);        
  }

no trades?

is it that my broker has problem?

sorry I did not install fresh copy.  should I?

cowmodee
64
cowmodee  
is anyone else having trouble placing trades on strategy tester?
Marco vd Heijden
Moderator
8415
Marco vd Heijden  

Strategy tester runs on a local datafeed from your harddisk.

It has nothing to do with other users or computers/servers unless you mean that you are using the cloud network.

cowmodee
64
cowmodee  

no fresh copy

no cloud

no changes made and using strategy tester with the above code was placing trades just before creating this post..

now this same code does not place any trades.  no changes made except for time lost.

Marco vd Heijden
Moderator
8415
Marco vd Heijden  

It's a problem on your end.

Check your parameters.

To add comments, please log in or register