A simple question about Stop Loss

To add comments, please log in or register
Nick_88
58
Nick_88  

To the community, 

First off I am very new so I apologize if I have put this query in the wrong section. I imagine a moderator will move it though if it is grossly misplaced. 

The context: a pending long position on the EURUSD triggered, and now open (random example)

My question is about moving a stop loss, first, manually by myself, then automated, based on preferred timing. 

1) What is the fastest time it would take to move a SL, just once, towards the original pending entry price, and what is the maximum distance (in pips) it must remain from the market at that move? Let's say I am in a volatile trade and I want to get my SL as quickly as possible to the original entry price in order to break even (because I believe that the bullish move will retrace below my entry if we follow my example). Can this be done in seconds? Or have I missed some fundamental principle all together?

2) If so, can I build an EA to automate this? e.g. once a pending order is triggered the SL is moved to that orginal triggered price within a second(s) (this assumes that the market has raced off towards the upside several pips away from the entry).  

Any help or guidance would be greatly appreciated. 

Cheers, 

Nick

whroeder1
17943
whroeder1  

Nick_88:

1) What is the fastest time it would take to move a SL. Can this be done in seconds? Or have I missed some fundamental principle all together?

what is the maximum distance (in pips) it must remain from the market at that move?

2) If so, can I build an EA to automate this?

  1. How fast? Same as placing an order.
    1. You have network delays (usually MS range,) but if you loose connection just before the send, it will take 30+ seconds for the timeout, reconnect, resend.
    2. Then you sit in the server queue, while it processes all older requests. Then it must check your account and free margin and if that passes, then the current market value is the price you get (slippage,) or SL is set.
    3. Normally only a fraction of a second, during news releases, this can take minutes and the market can move continuously.

  2. There is no maximum, you can move your stops as far away from the market as you want. You can't move stops (or pending prices) closer to the market than the minimum (MODE_STOPLEVEL * _Point.)
    MarketInfo(MODE_STOPLEVEL)      SymbolInfoInteger(SYMBOL_TRADE_STOPS_LEVEL)
              Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial

  3. You have only four choices:
    1. Search for it,
    2. Beg at
    3. learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
    4. or pay (Freelance) someone to code it.
    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
              No free help
              urgent help.

Nick_88
58
Nick_88  
How fast? Same as placing an order.
  1. You have network delays (usually MS range,) but if you loose connection just before the send, it will take 30+ seconds for the timeout, reconnect, resend.
  2. Then you sit in the server queue, while it processes all older requests. Then it must check your account and free margin and if that passes, then the current market value is the price you get (slippage,) or SL is set.
  3. Normally only a fraction of a second, during news releases, this can take minutes and the market can move continuously. 

So in answer to the above this is very helpful, thank you. So if I have understood correctly, the speed at which I can move a SL during a live position is similar to the speed at which it takes to place an order. That is, the same limitations faced by placing an order (as you mention from 1-3), are the same for moving a SL during a live position. This makes sense.  

I am very curious about the 'server queue' you mention. It seems to me that this would play a major role in determining slippage. If you are at the front of the 'queue'you get first dibs on entering/exiting the market when you so choose. 

So if I can also confirm, you have said that trying to move a SL during the first few seconds of a major news release would most probably take minutes, meanwhile the market is moving, and could go completely the opposite way to my entry, and I do not have a SL set during those crucial minutes because I have chosen to take it out of the market and change it, thus joining the server queue. Is this a correct interpretation? 

In regards to your 4 options about the EA, I will most probably go for option 4 and pay a freelance. At the moment though, I am trying to resolve my conceptual issues so that I don't go to the freelancer with an pointless task. So hopefully my questions here are ok! 

Thank you for all your help so far!

Cheers, 

Nick

To add comments, please log in or register