Experts: Virtual Trailing Stop - page 6

 
Vladimir Karputov:

You can always manually do whatever you want.

Hi , that is not what I asked...

I want to know if I can leave a hard stop and when I activate the virtual trailing stop it won´t cancel my real hard stop, as I don´t trust 100% in EAs and also the connection might go down while I am away from the computer.

 
beto_gauer :

Hi , that is not what I asked...

I want to know if I can leave a hard stop and when I activate the virtual trailing stop it won´t cancel my real hard stop, as I don´t trust 100% in EAs and also the connection might go down while I am away from the computer.

This can be done, but then the meaning will be lost - it will no longer be a virtual stop loss.

 
Vladimir Karputov:

This can be done, but then the meaning will be lost - it will no longer be a virtual stop loss.

Ah ok good, thanks for replying.

I am trying to understand the trail step parameter.

I don´t see why I would need this parameter as I have the trailing length and I have the minimum profit to start the stop loss.

 OK. Let´s say my target is at 100 and we are at 20. I set the trailing stop to start at 80  with a trailing length of 15. Ok so price reaches 80 and activate the trailing stop, so the stop now is at 65. If price moves 15 pip against me it takes me out, if it moves 15 pips in my favor, price will be at 95 now and stop will move to 80 to keep the 15 stop length.

Where the trailing step would come into play here in this scenario?

 
beto_gauer :

Ah ok good, thanks for replying.

I am trying to understand the trail step parameter.

I don´t see why I would need this parameter as I have the trailing length and I have the minimum profit to start the stop loss.

 OK. Let´s say my target is at 100 and we are at 20. I set the trailing stop to start at 80  with a trailing length of 15. Ok so price reaches 80 and activate the trailing stop, so the stop now is at 65. If price moves 15 pip against me it takes me out, if it moves 15 pips in my favor, price will be at 95 now and stop will move to 80 to keep the 15 stop length.

Where the trailing step would come into play here in this scenario?

Trailing always has two parameters: Stop and Step.

 
Perhaps a modified version will suit you: Virtual Trailing Stop 2
Virtual Trailing Stop 2
Virtual Trailing Stop 2
  • www.mql5.com
Доработка первой версии
 
Vladimir Karputov:
Perhaps a modified version will suit you: Virtual Trailing Stop 2

Thank you very much Vladimir.

I don´t know why I am having such a hard time understanding a simple concept like a trailing step, it is like it made a knot in my brain lol...

Can you just confirm that my thinking is correct here?

If I set a trailing stop with a length value of 20 pips after price reached the minimum profit to start the trailing stop, for every pip the price moves in my direction the trailing stop will go up too 1 pip, right? Preserving the 20 pip distance between price and stop. This is how a simple trailing stop with no step parameter would work.

Does it mean that a simple trailing stop adjusting at every 1 pip equals a trailing step of 1?

The step parameter just adds extra space between the trail stop and price?

Using the example above (trailing stop length of 20) with a trailing step of 10, if I go long when price is at 50 my trailing stop would be at 30. If price goes to 60, my trailing stop would go to 30, not 40?

So the actual size of the stop is the stop size + step size (when using step function)?
 
@Vladimir Karputov

Another good idea would be a  virtual PSAR trailing stop
 
beto_gauer :
@Vladimir Karputov

Another good idea would be a  virtual PSAR trailing stop

Yes, I have never seen such an application.

 
Possible convert this code for library for add in EA ?
 
Wimax49 :
Possible convert this code for library for add in EA ?

Yes, you can do it. It is open source.