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

 

Good afternoon. Please advise how to solve this problem. I need to make an array, an example is............. and it turns out a complete pun, tell me what's wrong. Thank you.

for(int i=1;i<=20;i++)
     {
     for(int j=1;j<=20;j++)
        {
        for(int q=1;q<=20;q++)
           {
           
             M5gooB[i,j,q]=false;
             Print("M5gooB ",i," ",j," ",q," false.");
             
           }
        }
     }
 

or even just like this

bool M5gooB[50],M5gooS[50];
  for(int i=1;i<=50;i++)
     {
     M5gooB[i]=false;
     
     }

and still Print prints a chaotic assignment construction in the logs

 
laveosa:

or even just like this

and still Print prints a chaotic assignment construction in the logs

Maybe this will help.

bool M5gooB[50],M5gooS[50];
  for(int i=0;i<50;i++)
     {
     M5gooB[i]=false;
     
     }
 

Who knows how to set a point in place of a cross (DRAW_ARROW)?

- There is an indicator, how to set a point object in global variables

//--- plot average
#property  indicator_label1  "average"
#property  indicator_type1   DRAW_ARROW
#property  indicator_color1  clrRed
#property  indicator_style1  STYLE_SOLID
#property  indicator_width1  1

 
Top2n:

Who knows how to set a point in place of a cross (DRAW_ARROW)?

- There is an indicator, how to enter a dot object in global variables


In global:

input uchar arrowsCodes0=159;//Wingdings: >= 33 or <= 255

or

uchar arrowsCodes0=159;//Wingdings: >= 33 or <= 255

https://docs.mql4.com/ru/constants/objectconstants/wingdings

In int OnInit() then it will be:

SetIndexArrow(0,arrowsCodes0);// https://docs.mql4.com/ru/customind/setindexarrow

Something like this.

 

Why are my points only drawn on history? In the strategy tester and wino chart windows only history, no new points are drawn

Code:

double sellArrowsBuffer[];
double buyArrowsBuffer[];
double closeArrowsBuffer[];

int jbnbHandle;

void OnInit()
{
....
    jbnbHandle = iCustom(_Symbol, _Period, "Projects\\iJBNB");
}


int OnCalculate(...)
{
    double cbearsColor[];
    double cbears[];

    int to_copy;

    if(prev_calculated > rates_total || prev_calculated <= 0)
        to_copy = rates_total;
    else
        to_copy = rates_total - prev_calculated + 1;


    if(CopyBuffer(jbnbHandle, 4, 0, to_copy, cbearsColor) != to_copy) 
        return 0;


    if(CopyBuffer(jbnbHandle, 3, 0, to_copy, cbears) != to_copy) 
        return 0;

    for(int i = 2; i < to_copy; i++)
    {    
        if(cbearsColor[i] == 2
            && cbearsColor[i - 1] == 1
            && cbears[i] > 0.2
            )
        {
            sellArrowsBuffer[i] = open[i] - symPoint * 30;
        }
    }

    return rates_total;
}

 
Can you please advise me how to make sure that in real time when dragging HLINE not catching stops/stake profit orders that are in the vicinity of the line? I've tried to disable single-click trading, it does not help. This effect does not exist in the Strategy Tester. I want to use OnChartEvent (by the way, I understand the events are not handled on the tester, only on relay?)
 

Good afternoon, the tutorial gives an example of an expert https://book.mql4.com/ru/samples/expert

Can you tell me why he makes several purchases/sales on the same candle?


CLOSE. saw stoploss

 
Pyro:
Can you please advise me how to make sure that in real time when dragging HLINE not catching stops/stakeprofit orders that are in the vicinity of the line? I've tried to disable single-click trading, it does not help. This effect does not exist in the Strategy Tester. I want to use OnChartEvent (by the way, I understand the events are not handled on the tester, only on relay?)
 

Hello! Where can I get (where is) the tick history of quotes? And, most importantly, how to refer to each tick in mql?

Reason: