Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 467

 
Mepkypuu:

Hi all, I noticed this thing - quotes from different dealing centres are different. (OMG) I downloaded EURJPY archive for M30 from http://www.fibo-forex.ru/trader/download_quotes.html and compared it to Admiral-Demo server - Admiral Markets Ltd.

c fibo-forex:

2013.12.02 00:00 139.25 139.29 139.14 139.25 236


c Admiral-Demo:

2013.12.02 00:00 139.23 139.35 139.16 139.33 216


The differences are obvious, although not significant. In principle, I imagine that this can somehow be written off as an error. But, this begs the tricky question: is a dealing centre capable of deliberately providing quotes that differ so much from the actual, that some transaction could fail for this reason, i.e. to provide deliberately false data in order to deliberately break the client's trade?


The quotes have always differed everywhere.

First of all, each broker has its own agent.

And then the record is made on the basis of the data that came in at a certain point in time.

If we are talking about historical quotes, it depends on the agent.

If we are talking about current quotes. Sometimes they may be different on one account with one broker.

Well, just because one batch didn't arrive.\

Don't worry. - it's normal.

 

Help me solve this problem:

There is an arrow indicator(any) with two buy and sell arrows, I need to do something to memorise the numbers of the last three bars on which the buy arrows appear and the same for the sell arrows.

 

last bar i.e. current = 0

penultimate = 1

create a variable or array

like this int buy0, buy1, buy2;

respectively with the help of brute force

int i,y,z ;

for(i=0;i<100;i++){

if(буферстрелкабай[i] = стрелка){buy0=i;break;}

}

 for(y=i+1;y<100;y++){

if(буферстрелкабай[y] = стрелка){buy1=y;break;}

}
 for(z=y+1;z<100;z++){

if(буферстрелкабай[z] = стрелка){buy2=z;break;}

}

from 0 bar to e.g. 100 bar, look for arrows, i.e. if the buffer with arrows has an arrow, save it buy0 = bar number

then continue searching and find the second arrow

and so on 3 arrows

when we have found three arrows, exit the loop with break function

 
Thanks, I'll give it a try.
 
In the old build of mt4 when you start to enter the name of the function automatically enabled the search in the list of names by start characters in the new build this thing is disabled ...how to bring it back?
 

Trying to get the values of the current candle as in the textbook

void OnStart()
  {
//---
   MqlRates rates[];
   ArraySetAsSeries(rates,true);
   int copied=CopyRates(Symbol(),0,0,100,rates);
   if(copied>0)
     {
      Print("Скопировано баров: "+copied);
      string format="open = %G, high = %G, low = %G, close = %G, volume = %d";
      string out;
      int size=fmin(copied,10);
      for(int i=0;i<size;i++)
        {
         out=i+":"+TimeToString(rates[i].time);
         out=out+" "+StringFormat(format,
                                  rates[i].open,
                                  rates[i].high,
                                  rates[i].low,
                                  rates[i].close,
                                  rates[i].tick_volume);
         Print(out);
        }
     }
   else Print("Не удалось получить исторические данные по символу ",Symbol());
  }

I get every tick

on the current candle values at the open price

2014.02.08 14:28:19.051 2014.01.02 09:41  Proverka EURUSD,H1: 0:2014.01.02 09:00 open = 1.3751, high = 1.3751, low = 1.3751, close = 1.3751, volume = 1

how to get the real values

Close[0]!=rates[0].close????

 
Zver4991:
In the old build of mt4 when you start to enter the name of the function automatically enabled the search in the list of names by start characters in the new build this thing is disabled ...how to bring it back?

I can't see how it works now, but it's case sensitive, that's the whim of the developers.
 
evillive:

It works the same way now, only it's case sensitive, which is a whim of the developers.

Can't you turn off this case-sensitive feature?
 
tell me, is it possible to close an order knowing only its ticket? if so, how?
 
Zver4991:

can't this case dependency be turned off?

Maybe the developers will be pleased and then listen to the wish of the workers to remove the case dependency as in the old ME...