[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 349

 
Hi all, can you tell me where MT4 physically stores GlobalVariables values? I have a question in connection with Windows reinstallation.
 
Pyro:
Hi all, can you tell me where MT4 physically stores GlobalVariables values? I have a question in connection with Windows reinstallation.
profiles\gvariables.dat
 

Question: why was there no stop loss close on 14 January?

test mode: all ticks


 
ilunga:

Question: why was there no stop loss close on 14 January?

test mode: all ticks

see the log - probably a bar error.
 
sergeev:
see the log - probably a bar error.

really a bar error. At the same time on H1 all closed normally in this place

Reloaded the data from the server and it closed correctly

 

This is a very interesting question:

In Java, there are truncated AND and OR (&& and ||) logical operations, where the right-hand side of the operand is not evaluated, and the result of the expression depends only on the left-hand one. Given that there are no similar single-valued operations (& and ||) in MQL, my understanding is that both operands (both left and right) should be evaluated in MQL when using these operations. However, considering some cases where testing errors were detected while forming long logical codes using these operators (placing orders in forbidden places), I decided to specify this question. Who knows for sure - dispel any doubts.

 
KONDOR:
double level= High[min_V2]; use double Level=NormalizeDouble(level,Digits) in function;

I tried it this way, the result is the same - zero.

int start() {

int mas2[10][2],min_1,min_2,min_V1,min_V2;


for(int i=1;i<Q_Bars;i++)
{
min_1 =ArrayMinimum(Volume, Q_Bars,1); //определяем индекс бара с минимальным объемом
min_V1=iVolume(0,0,min_1); //величина этого объема

mas2[i,0]=Volume[i]; //заполняем 1-ю часть двумерного массива объемами
mas2[i,1]=i; //вторую часть - соответствующими им индексами
}
ArraySort(mas2); //сортируем по величине объемов
min_V2=mas2[2,0]; //определяем второй после минимального объем
min_2=mas2[2,1]; //соответствующий ему индекс бара

H1= NormalizeDouble(High[min_2],4); //нормализуем level по знакам после запятой
create_line("", H1, Ex_col_2, 0, 2); //пытаемся нарисовать линию

return(0); //Bывод: ничего не рисуется, что еще ему надо - ????
}
//--------------------------------------------------------------------
void create_line(string name_line,double level,color c,int style,int w)
{
ObjectCreate(name_line, OBJ_HLINE, 0, 0,0);
ObjectSet(name_line, OBJPROP_PRICE1, level);
ObjectSet(name_line, OBJPROP_COLOR, c);
ObjectSet(name_line, OBJPROP_STYLE, style);
ObjectSet(name_line, OBJPROP_WIDTH, w);

}


 
-xlapex-:

Tried this, the result is the same - zero.


create_line("name", H1, Ex_col_2, 0, 2); //пытаемся нарисовать линию

2011.04.26 13:29:42 leve2 NZDJPY,M15: object name passed to ObjectSet function cannot be an uninitialized or empty string

 
Please advise people, what is the reason for such a long check of the trading system that I have posted in the code base. third day "pending check", although I look check is in full swing, the codes appear, but not my TS.))))) thanks in advance)
 
TO:

It's called "Oh, shit!!!". Thanks, KONDOR!
Reason: