I can't believe it! - page 11

 

it used to be like this in the tester:
- on zero bar OPEN=CLOSE=HIGH=LOW
did the metaquotes get fixed

P.S. OPEN[0]=CLOSE[0]=HIGH[0]=LOW[0]

 
#property copyright "Copyright © 2008, Xnko"
#property link      "xnko@mail.ru"

void CloseOrder(int ticket, int slippage = 3)
{
   int error;
   double price;
   
   if(!OrderSelect( ticket, SELECT_BY_TICKET, MODE_TRADES))
      return;

   int type = OrderType();

   if( type == OP_BUY)
      price = Bid;
   else
      price = Ask;
      
   while(true)
   {
      if(!OrderClose( ticket, OrderLots(), price, slippage, CLR_NONE))
      {
         error = GetLastError();
         Print("LastError = ", error);
      }
      else
         error = 0;
   
      if( error == 135)
         RefreshRates();
      else
         break;
   }
}
 
#property copyright "Copyright © 2008, Xnko"
#property link      "xnko@mail.ru"

int FindOrder(int magic)
{
   for(int i = 0; i < OrdersTotal(); i++)
      if(OrderSelect( i, SELECT_BY_POS, MODE_TRADES))
         if(OrderSymbol() == Symbol() && ( magic == 0 || OrderMagicNumber() == magic))
            return (OrderTicket());
   
   return (0);
}
 
Korey >> :

In the tester it used to be like this:
- OPEN=CLOSE=HIGH=LOW
did the metaquotes get fixed

P.S. OPEN[0]=CLOSE[0]=HIGH[0]=LOW[0]

No, the logic is the same.

 
xnko >> :

>> no, the logic is the same.

The expression is not always correct.

 
I did not put up with it. I bet on the real account (but with cents). In a month if my expectations come true I will give you a present on New Year's Eve! If expectations are met, I will give them a present in the New Year! I will show the null version of my Expert Advisor, which turned $100 into $1000 in the Strategy Tester during this year. Maybe you will get even more profitable EA after you run the code than I did!
 

I shouldn't have put it there... although in principle $100 is not a pity... But you can't trust the results with such a quality of modelling.

I also had a system that doubled my deposit in a month with a constant lot. If I used MM, I would probably observe such astronomical pictures too... But these results were based on "check points". On ticks at 90% quality this miracle was losing money...

 
Vinsent_Vega >> :

I shouldn't have put it there... although in principle $100 is not a pity... But you can't trust the results with such a quality of modelling.

I also had a system that doubled my deposit in a month with a constant lot. If I used MM, I would probably observe such astronomical pictures too... But these results were based on "check points". On ticks at 90% quality this miracle was losing...

Well yes, I'm very much afraid of that. Honestly, I don't believe the results either.

In 2 hours of real test so far everything is going according to plan, God willing to continue at this pace.

 
Testing with an initial deposit of 25 cents, no more money, I lost it all in manual trading :)
 

if you don't know how to achieve 90% quality, here's the sequence:

set the Max bars in the history and in the window to 999999999

download the history of the minutes.

synchronize it (just open the chart and press Update)

then convert those Minutes with the period_converter script (multiply multiplying factor 5 for M5, 60 for H1, 1440 for Daily, etc.)

only make sure that the script finishes its work correctly on the Experts tab

reload MT and voila - a quality history is ready

Reason: