[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 522

 
artmedia70:
Naturally. There is only one function that will continuously monitor equity and send a command to close unprofitable positions if the specified value is exceeded. Then, after all of the positions are closed successfully, the new equity status must be recorded and continued to monitor it.
Could you translate your words into MQL4 program code?
 

The question on my part is off the table. I solved it this way. Before writing to the file, I inserted a check like this:

if(OrderType() < 2)
  {  
    Str_Stop_Loss = StringSubstr(comment,StringLen(comment)-digit_string,digit_string);
    Price_Stop_Loss[pos] = MathAbs((StrToDouble(Str_Stop_Loss)-Open_Price)*dgt);
                  
    double Ready_P = Profit_P+Swap_P+Commission;
                  
    if(TS№1_DS[pos]  != Ready_P)   {  TS№1_DS[pos]  = 0; }
    if(TS№2_TA[pos]  != Ready_P)   {  TS№2_TA[pos]  = 0; }
    if(TS№3_SBH[pos] != Ready_P)   {  TS№3_SBH[pos] = 0; }
                  
    FileWrite(handle,TimeToStr(OrderCloseTime(),TIME_DATE|TIME_MINUTES)+","+Symbol()+","+Type_Pos+","+DoubleToStr(OrderLots(),2)+","

                    +DoubleToStr(Acc_Bal_Close[pos],2)+","+DoubleToStr(Price_Stop_Loss[pos],2)+","+DoubleToStr(Ready_P,2)+","

                    +DoubleToStr(TS№1_DS[pos],2)+","+DoubleToStr(TS№2_TA[pos],2)+","+DoubleToStr(TS№3_SBH[pos],2));  }

I don't know if it's correct, but the report looks as intended. )) Thank you.

 
alex12:
Can you translate your words into MQL4 code?
I could, but I'm busy at the moment...
 
artmedia70:
I could, but I'm busy at the moment...
I understand, if anything, I'm relying on you.
 

How soon will MT4 cease to be the platform supported by brokerage companies?

Is MT5 now in test mode on demo accounts (what, where) or is it already possible to trade on real accounts?

 
Maxaxa:

How soon will MT4 cease to be the platform supported by brokerage companies?

Is MT5 now in test mode on demo accounts (what, where) or is it already possible to trade on real accounts?


In addition to this question, after MT5 will be available for live trading, will it be possible to trade through MT4 or will the old platform be banned?
 
tol64:

In addition to this question one wonders, once MT5 is made available for real trading, will it be possible to trade via MT4 or will the old platform be banned?

It will not just be banned. It will be obligatory to delete MT4 from the hard disk by formatting it and then destroying the data according to US and some Russian standards. Otherwise MT4 disables processor's thermal protection by means of low-level commands and puts it into hyper mode with frequency 20 times higher than maximum operating one. The processor can withstand this mode for a few seconds. Then it burns out.

This is from the secret instruction of Metakvot to counteract unauthorized use of MT4 after MT5 introduction.

 
Zhunko:

It will not just be banned. It will be obligatory to delete MT4 from the hard disk by formatting it and then destroying the data according to US and some Russian standards. Otherwise MT4 disables processor's thermal protection by means of low-level commands and puts it into hyper mode with frequency 20 times higher than maximum operating one. The processor can withstand this mode for a few seconds. Then it burns out.

This is from the secret instruction of Metakvot to prevent unauthorized use of MT4 after MT5 implementation.


JUUUUUUUt!!!! Vadim don't be so scary, life is already scary
 
Zhunko:

It will not just be banned. It will be obligatory to delete MT4 from the hard disk by formatting it and then destroying the data according to US and some Russian standards. Otherwise MT4 disables processor's thermal protection by means of low-level commands and puts it into hyper mode with frequency 20 times higher than maximum operating one. The processor can withstand this mode for a few seconds. Then it burns out.

This is from the secret instruction of Metakvot to prevent unauthorized use of MT4 after MT5 implementation.


)))) Not a bad anecdote from earlier in the morning.
 

But seriously, can anyone answer - any predictions for the MT5 transition ?

I will explain for gloating humorists why I ask, we are going to write an expert system for fun, sort of a group of specialists losers with experience, not for money, believe me, but just to solve another applied problem, so, maybe someone knows when MT4 will be tragically squeezed out by MT5 ? Just so we don't have to port from one to the other later...

Nothing personal, if it offended anyone ))))