Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1048

 
MakarFX:

Can you please tell me if it is possible to set _chart_window buffer , i.e.

There is an oscillator with two buffers and I need the first buffer to be output in the "basement" and the second buffer to be output on the chart.

Only with the help of graphical objects.

 

I am not a programmer, but I decided to try myself in this business.

I think that the problem is not constant and occurs rarely, but I have never noticed it.

              double SeriaHistory( datetime OpenTimeSeria){
 datetime time=0;  int orders_seria=0;  HistProfitSeria=0; 
 LastCloseLots=0; LastCloseProfit=0;
 
 if(OpenTimeSeria==0)return(0);// no seria
   else{
    for ( int i=OrdersHistoryTotal();i>=1;i--){
         if(OrderSelect(i-1, SELECT_BY_POS, MODE_HISTORY))
         if(OrderSymbol ()!= Symbol())continue;
         if(OrderMagicNumber()!= Magik )continue;
         if(OrderCloseTime()<=OpenTimeSeria)continue;
      {
          orders_seria++;
          HistProfitSeria+=OrderProfit()+OrderSwap()+OrderCommission();
          if(OrderCloseTime()>time)
            {
            time = OrderCloseTime();
             LastCloseLots = OrderLots(); 
             LastCloseProfit=OrderProfit();
          time2=time;  }
        }
       }
     }

Print("time",OpenTimeSeria);
Print("серия",HistProfitSeria);
Print("OrderCloseTime()",OrderCloseTime());
Print("time2",OpenTimeSeria);

  return(HistProfitSeria);
}
Files:
idotfl.PNG  5 kb
ms9vr1.png  7 kb
 

Greetings.

Could you please tell me if it's possible to draw the indicator as a background (mt4)? , the way it can be done with objects?

 

on windows 10 do the quotes come in hibernation mode? or not ...?

and in general how best to set up the power consumption on the computer?

for now i want to do it through the computer...

 
Roman Shiredchenko:

on windows 10 do the quotes come in hibernation mode? or not ...?

and in general, what is the best way to set the power consumption on the computer?

I want to do it via computer ...

If you're talking about running an EA from your computer terminal, it doesn't work in hibernation mode.

 
Please help. I accidentally deleted the app with my real account and when I downloaded it I had to register again and I don't remember how I was registered I was helped with registration by a specialist but I have a screenshot. How do I get back to my trading platform.
 
Вероника Баранова:
I can change my password in my personal account. I accidentally deleted the app with my real account and when I downloaded it I had to register again and I don't remember how I was registered I was helped with registration by a specialist but I have a screenshot. How do I get back to my trading platform.

You can change your password in your Personal Area

 
Hello. Could you please tell me how to rewrite the condition.How do I rewrite the condition to open Buy order if & the main & signal lines cross the buy level from upside down. This is a stochastic EA.
double M_0, M_1, // MAIN value at 0 and 1 bar
S_0, S_1; // SIGNAL value at 0 and 1 bar

if(M_1 > S_1 && M_0 <= S_0 && S_0<=BUY_urov) // Green crosses red from below, buy
2020.01.25
 
Alekseu Fedotov:

You can change your password in your Personal Area

 
Alekseu Fedotov:

You can change your password in your Personal Area

I wonder if you could help me. Please. I'm afraid to do something wrong now.
Reason: