[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 413

 
Integer:


Replace Bid with iClose(NULL,PERIOD_M5,0) and PERIOD_M5 with NULL.

This must be the indicator on the visual test chart?


tell me, does the BID have any problems and is it better to prescribeiClose?
 
lottamer:


Thanks, that'll come in handy too. there are often "wrong bars".

What format should the time be in?


In string format, like in the terminal "2013.01.30 12:55". It is easier to create a vertical line and copy the time from its properties with the mouse.
 
Integer:

In string, as in the terminal "2013.01.30 12:55". It is easier to create a vertical line and copy the time from its properties with the mouse.

thanks
 
lottamer:

tell me, are there any problems with BID and is it better to prescribe iClose ?

There are problems for the indicator on the visual test chart.
 
Integer:

There are problems for the indicator on the visual test chart.

quite embarrassed to ask, what is a visual test chart? Is it a visualisation in the tester or something else?
 
lottamer:

quite embarrassed to ask, what is a visual test schedule? Is it visualisation in the tester or something else?

Yes. Testing with "Visualisation" ticked, with the graph open and everything visible on it.
 

Good afternoon, all.

Studying MarketInfo ( ) and Print( ) functions

Here is a simple code with these functions

Tester, TF 60 min.

double T ;
int start()
{
 T = MarketInfo("EURUSD",MODE_HIGH); // в глобальную переменную Т запоминаем максимум дневной свечи,который должна возвращать  MarketInfo ( )
Print (" corresponds to ", T );           //
if ( T > iHigh( Symbol (), 0,10))  // если максимум текущей дневной свечи > High свечи N10(ТФ60 мин)
OrderSend(Symbol(),OP_SELL,0.1,Bid,1,0,0,"jfh",123 ); открыть ордер
}                                                                                                                       
return;

ПРОБЛЕМА 1.Ордер не открывается 2.Print() постоянно возвращает 0 ПРИМЕЧАНИЕ. Для открытия ордера - мне нужной сравнивать параметры свечей разных ТФ(60 мин и 1440 мин.) Подскажите пожалуйста как это можно сделать. Спасибо.

 
Zhunko:

Checked RefreshRates(). If this Expert Advisor is run, for example, on EURUSD, and another tool whose window has not been opened for a long time is inserted in the settings (so that the history is not there), the history appears.

So, still RefreshRates() refers to the server and fills the history. As a consequence, controlling the arrival of history is necessary.

Support says that none of the functions directly refers to the server. So, everything is done through the terminal :-)


If you remove RefreshRates(), the history will be updated anyway. For this purpose it is enough that the instrument is opened in market overview andaccess to time-series
 
Vinin:

If you remove RefreshRates(), the history will still pile up. For this purpose, it is enough that the instrument is opened in market overview andaccess to time-series
... And in general, this function is not designed to swap the history (side effect), but to update the current values.
 
tara:
... and in general, this function is not for history paging (side effect), but to update the current values.


This has already been written about.