Trailing stop without Expert Advisor

 
Trying to develop a product, I’ve seen that trailing stop is working perfectly in EA, but Is there any other way to set trailing stop without EA? Thanks.
 
The MetaTrader terminal itself provides a simple trailing stop operation for manual trading ... https://www.metatrader5.com/en/terminal/help/trading/general_concept#trailing_stop
Basic Principles - Trading Operations - MetaTrader 5 Help
  • www.metatrader5.com
Before you proceed to study the trade functions of the platform, you must have a clear understanding of the basic terms: order, deal and position...
 
Fernando Carreiro #:
The MetaTrader terminal itself provides a simple trailing stop operation for manual trading ... https://www.metatrader5.com/en/terminal/help/trading/general_concept#trailing_stop

Thanks Fernando Carreiro for replying. 

Actually what am I trying to say is that I wanted to write a program where I can set trailing stop, script program runs just once, so script can't handle trailing stop, with expert advisor it is possible, but Is there other ways to write trailing stop code without EA?

 
Md Atikur Rahman #: Actually what am I trying to say is that I wanted to write a program where I can set trailing stop, script program runs just once, so script can't handle trailing stop, with expert advisor it is possible, but Is there other ways to write trailing stop code without EA?

I can only think of three possibilities:

  • An EA would be the ideal solution.
  • A Script with an endless loop, but this is not ideal nor is it a good practice (it would consume too much CPU if not properly coded).
  • A Service with endless loop, but this would be for a more generalised service-oriented situation affecting the whole trading account (and would need to be properly coded to prevent heavy CPU load).
 
Fernando Carreiro #:

I can only think of three possibilities:

  • An EA would be the ideal solution.
  • A Script with an endless loop, but this is not ideal nor is it a good practice (it would consume too much CPU if not properly coded).
  • A Service with endless loop, but this would be for a more generalised service-oriented situation affecting the whole trading account (and would need to be properly coded to prevent heavy CPU load).
Got it, thank you very much for your help.