Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1569

 
Alex-1 #:
The standard ones are all duplicated and I may need a second one!?

The MQL programme is installed in the folder "C:\Program Files\.....", but it uses the data of programmes (Expert Advisors, indicators) from the folder "C:\Users\User\AppData\Roaming\MetaQuotes\Terminal\(further long identifier)". Put your indicators and Expert Advisors here. Restart the terminal. Everything will be displayed.

You can quickly get to this folder via "File/Open data directory"

 
Alex-1 #:
The standard ones are all duplicated and I might need a second one!?

You've already been told five times what the reason is, and you're like a pea in a pod.

 

What can the error be related to? Everything seems to be correct, take is higher than the entry price, stop is lower, why does it give an error?

 
statist247 #:

What can the error be related to? Everything seems to be correct, take is higher than the entry price, stop is lower, why does it give an error?

try to take more of the difference, everything that is not related to forex is in question.

either it is not done, or it is crooked and they can't coordinate and so on, they have taken a big swing, but they can't. crooked company.

I don't even know whether it is worth developing robots here.


I myself work with software that is very expensive, and it is very specialised, but I am the only one who does everything there, I take into account a lot of nuances, which losses can be when calculating large objects.

MQ has its own position, which is not very useful for consumers.

 
lynxntech #:

try to take more of the difference, everything outside of forex is in question here

either it is not done, or it is crooked and they can't coordinate it and so on, they have taken a big swing, but they can't. crooked company.

I don't even know whether it is worth developing robots here.


I myself work with software that is very expensive, and it is very specialised, but I am the only one who does everything there, I take into account a lot of nuances, what losses can be when calculating large objects.

MQ has its own position, which is not very useful for consumers.

I believe that the limit is too far from the current price. 15% movement from the price now and the price, where the limit should be, will have to be done not through the limit, but through the bymarket, but personally for me the limit would be more convenient

 
statist247 #:

I believe that the limit is too far from the current price. 15% movement from the price now and the price where the limit should be will have to be done not through the limit but through the bymarket, but for me personally the limit would be more convenient.

Try more, free margin can get in the way.

in Finam, if you calculate the amount for a contract, the deal will not happen probably, you need to take 1 less, and then this one can be bought immediately)

 
if (...)
         {
         request.action = TRADE_ACTION_PENDING;         
         request.type = ORDER_TYPE_BUY_LIMIT;             
         request.symbol = _Symbol;                       
         request.volume = lot1;                         
         request.price = low;                      
         request.sl = low-(SL*klow*_Point);                          
         request.tp = low+(TP*klow*_Point);                           
         request.type_time = ORDER_TIME_SPECIFIED;       
         request.expiration = D'2027.08.31 00.00';          
         request.type_filling = ORDER_FILLING_FOK;       
         request.stoplimit = 0;                         
         OrderSend(request, result);  
         Sleep(100000);
         }
         if (...)
         {
         request.action = TRADE_ACTION_PENDING;         
         request.type = ORDER_TYPE_SELL_LIMIT;             
         request.symbol = _Symbol;                       
         request.volume = lot2;                         
         request.price = high;                      
         request.sl = high+(SL*khigh*_Point);                          
         request.tp = high-(TP*khigh*_Point);                           
         request.type_time = ORDER_TIME_SPECIFIED;       
         request.expiration = D'2027.08.31 00.00';          
         request.type_filling = ORDER_FILLING_FOK;       
         request.stoplimit = 0;                         
         OrderSend(request, result); 
        Sleep(100000);
          }

I tried using ordersend instead of ctrade, at least it puts something out without problems, but it gives this error, maybe someone knows how to fix it or it's also impossible as with the last situation. And the problem occurs with any type of limit order in turn, I don't even know what it depends on.

 
high = iHigh(Symbol(), PERIOD_W1,1);

...



if (..)

         {              

         request.price = high;                      

         request.sl = high+(SL*khigh*_Point);                          

         request.tp = high-(TP*khigh*_Point);                           

         OrderSend..

          }

I switched from ctrade to ordersend and for some reason, in some strange sequence, an error occurs with placing buy limit and sell limit orders. Here is an example, the price at which the asset is traded at the current time - 4.849, and the price at which I want to set a limit - 5.091, but for some reason the computer counts differently and because of this limit is not set, because the opening price of the order is lower than the current (4.583), when it should be 5.091. This happens when buying, when selling, or not at all, I have searched a lot on this topic, but nothing came up. Does anyone know how to fix it, because in my opinion there is no cause of the fault

 
statist247 opening price of the order is lower than the current (4.583), when it should be 5.091. This happens when buying, when selling, or not at all, I have searched a lot on this topic, but nothing came up. Does anyone know how to fix it, because in my opinion there is no cause of the fault

We need to normalise the price. Make it a multiple of the tick size. Look at the function in ctrade.

 
Hello, everyone. Could you please tell me, when copying signals, is it possible to make a sound notification when I have opened a deal?