_TakeProfitMove - Script for MetaTrader 4
The TakeProfitMove script is an algorithm that controls a Take Profit order.
Depending on the value of UpDoun = true or = false, the script either "pulls up" Take Profit closer to the market, or "pulls up" and "pushes" it, keeping distance in Distance points. This script may completely replace trailing, which can work only online.
It is important to remember that in the case the Dialing Center limits the installation of Stop and Limit "under the market", it is necessary to remove the comment in the block with the restriction, setting the required value of Distance.