Errors, bugs, questions - page 1243

 

The code cannot be inserted into the forum. While editing the code is there, after saving the code goes away.

Attempt number 2:

Basically here is the text of the code that I can't paste into the forum with the SRC button

if(i>3)

{

if(Close[i]>Close[i-3])

upper2[i]=High[i];

if(Close[i]<Close[i-3])

lower2[i]=Low[i];

}

 
kittenru:

Good afternoon.

metatrader 5 build 1010

ChartPriceOnDropped(), ChartWindowOnDropped(), ChartTimeOnDropped(), ChartXOnDropped(), ChartYOnDropped() stop working

return 0

What can it be?

How do you check?

Try the following script.

void OnStart()
  {

   Print(ChartPriceOnDropped());
   Print(ChartWindowOnDropped());
   Print(ChartTimeOnDropped());
   Print(ChartXOnDropped());
   Print(ChartYOnDropped());
  }


P.S. Please wait for next build.

 
barabashkakvn:

The code cannot be inserted into the forum. While editing the code is there, after saving the code goes away.

Attempt number 2:

What browser version?
 
alexvd:
Which browser version?

Google Chrome 38.0.2125.111

 
barabashkakvn:

Google Chrome 38.0.2125.111

Try refreshing the page without/without clearing the browser cache.
 

Deleted everything in the cache through the settings.

Now the code:

In cases like this, my advice is, "You've got a bug up your ass." But how do you apply that advice to me?

P.S. Tried and Ctrl + F5. Effect did not give.

P.P.S. Rebooted. Attempt #...


And now an attempt via Internet Explorer 11.0.9600.17416:

      if(i<Bars-2)
        {
         if(Close[i]>upper[i+2])
            upper2[i]=High[i];
         if(Close[i]<lower[i+2])
            lower2[i]=Low[i];
        }

Now from home PC,Google Chrome 38.0.2125.111:

   if(prev_calculated==0)
     {
      limit=MAPeriod;
      ExtMapBufferEMA[0]=close[0];
      for(i=1; i<limit; i++)
         ExtMapBufferEMA[i]=close[i]*SmoothFactor+ExtMapBufferEMA[i-1]*(1.0-SmoothFactor);
     }

Yay! It's working!

 
alexvd:

How do you check?

Try a script like this.


P.S. Please wait for the next build.

That's how I test it.

It works in Metatrader 4, not in 5.

i am waiting for the next build...

 
ALXIMIKS:

1. When will the new build of 4 come out, or will no one be fixing bugs in the near future?

2. Please fix fucking cache (either parameters or CopyClose function) in the tester 4
(just some kind of crap - when you change the tester 's parameters or recompile it - and it constantly caches during new test)

3. is it normal that the ticket at once also inMODE_TRADES and does not exist because of4108 errorfromOrderClose
(in the 4ka tester (every tick) execution reachesOrderClose, and only then returns error about non-existence of the ticket.

Bugs are fixed.

We can't reproduce problems described by you.

We need more information - code example and reproduction steps

 

Reinstalled Google Chrome. I can insert code like this

      if(i<Bars-2)
        {
         if(Close[i]>upper[i+2])
            upper2[i]=High[i];
         if(Close[i]<lower[i+2])
            lower2[i]=Low[i];
        }

and this one:

      if(i<Bars-2)


{


if(Close[i]>upper[i+2])


upper2[i]=High[i];


if(Close[i]<lower[i+2])


lower2[i]=Low[i];


}


which has spaces between lines, you cannot insert as code

 
sergeev:

then you will be more comfortable not using closed third-party libraries.

Use File Mapping natively without DLLs

Oh, that's probably what you need. At least tick counter works on different charts. Thanks a lot!
Reason: