脚本: Modify SL TP

 

Modify SL TP:

这个脚本程序是用于修改仓位的止损和获利的。

Modify SL TP

作者: Ziheng Zhuang

 

如果不想更改 StopLoss 和 TakeProfit 中的任何一个,只需将其设置为 0。

比方说,如果不想改变头寸的止损价格,只需将止损点数设为 0。

同样,如果您不想更改仓位的止盈 价格,只需将止盈点数设置为 0。

 

如果你不想修改止损,就把Stoploss Pips 设置成0.

如果你不想修改止盈,就把TakeProfit Pips 设置成0.

 
客户鲁班 已确认 "演示 "步骤
 

多么马虎......

 

您好、

它适用于 mt4 还是 mt5?

不能在 mt5 上运行

 
Krisma Freddy:

你好

它适用于 mt4 还是 mt5?

不能在 MT5 上运行


它适用于 MT5。

MT4 版本:

https://www.mql5.com/zh/code/18011

Modify SL TP
Modify SL TP
  • www.mql5.com
This script is used to modify the Stop Loss and Take Profit of current symbol positions. The new Stop Loss and Take Profit are based on the market price. If the inputs are 0, there will be no modification. It is useful to update all positions with the same SL/TP. LRDegrees MT4...
 

庄子恒先生


您的Sl和Tp是根据当前价格计算的,但我想根据我买入/卖出的价格计算Tp/Sl,您能帮我做到吗?


谢谢,钱德勒

 
shinigami030:

庄子恒先生


您的Sl和Tp是根据当前价格计算的,但我想根据我买入/卖出的价格计算Tp/Sl,您能帮我做到吗?


谢谢,钱德勒


查看 附件。

附加的文件:
 
您好,能否增加按价格更改 TP/SL 的功能。这个功能也很好用,但我想输入实际存在的价格,而不是基于点数。
 
如果能像 MT4 那样按价格修改 TP SL,那就太好了。