1赞

11评论

15收藏

Position-Sizer 仓位管理-以损定仓 EA(辅助下单,非自动化交易)

 

avatar phonglee | 3917 人阅读 | 11 人评论 | 2023-05-27

本帖最后由 phonglee 于 2023-5-27 14:45 编辑

使用界面

使用界面

使用界面

使用界面

设置

设置

设置

设置
主要功能:设定资金风险比例或者固定止损金额,可通过拉动止损线自动计算仓位。辅助下单。

要安装智能交易系统(EA),请确保将整个文件夹从存档复制到 /
MQL4/Experts/ 或 /MQL5/Experts/ (如果您使用的是 MetaTrader 5)。MT5需要打开源代码执行一次调试。


用法:请大家自己摸索学些。

如果您的主要目的是根据您的止损和当前市场参数计算头寸大小,然后根据计算出的头寸大小执行交易,则使用此专家顾问非常简单。
  • 将头寸调整器附加到图表将自动将入场价设置为当前价格,为市场买入订单做准备。止损水平将设置为最接近的低点。止盈将被打开。
  • 现在,如果您计划将止损设置为当前柱线的低点并具有 1% 余额风险的市场买入订单,您已经可以使用其头寸大小输出进入交易。您也可以手动更改头寸大小字段,以根据其值计算风险。
  • 如果没有,您可以自由更改止损 — 通过在图表上拖动止损线或在面板的止损输入中输入值。您还可以通过打开相应的输入参数将止损设置为以点为单位的距离。
  • 您可以以相同的方式设置止盈。此外,您可以通过单击止盈按钮快速将 TP 设置为等于当前 SL 值(或使用一些预设乘数)。与止损类似,如果打开相应的输入参数,则止盈可以设置为以点为单位的距离。当止盈数输入参数设置为大于 1 的值时,支持多个止盈水平。您还可以使用面板按钮添加和删除止盈。
  • 如果您通过 EA 的输入参数打开 ATR 设置,您还可以控制止损和止盈计算的 ATR 值
  • 添加止盈将打开“奖励”和“奖励/风险比率”的显示,以供参考。
  • 将订单类型从即时切换到待处理(并向后)是通过订单类型按钮完成的。当使用即时订单时,入场价将落后于当前价格(买入价或卖出价),并且无法手动更改。当使用挂单或止损限价(MT5)订单时,可以通过面板的输入或拖动图表线来设置入场水平。
  • EA 将警告如果挂单模式下的入场价太接近当前价格,以及止损或止盈价位太接近入场价位。
  • 如果您希望计算您的潜在损失,包括此交易成本,您可以设置经纪人应用的佣金大小(单向)。
  • 在某些情况下,将账户规模从余额转换为净值或余额减去投资组合风险可能很有用,只需单击一两次相应的按钮即可完成。
  • 调整风险承受能力可以通过两种方式完成:通过设置百分比风险值或通过设置货币风险值。两者都是通过面板中的输入字段完成的。如果您需要经常切换每笔交易的风险,您也可以使用快速风险设置按钮。
  • 转到面板的“风险”选项卡是完全可选的,并提供有关您当前和潜在风险和回报的信息。您可以在此选项卡中控制如何处理挂单和没有止损/止盈的订单。
  • 如果您的目标是根据您的风险和止损计算最佳头寸规模,则保证金选项卡也不是必需的。此选项卡将通知您头寸产生的可用和已用保证金金额。它还将向您显示您可以使用当前的可用保证金和杠杆开立的最大头寸规模。如果需要,可以输入自定义杠杆。
  • 如果您想知道每日展期对您的头寸的成本有多高,可以查阅掉期选项卡。如果您使用的是套利交易策略,这将特别有用。
  • 交易选项卡将帮助您执行实际交易并控制其完成方式。


    Using this expert advisor is very simple if your main aim is to calculate the position size based on your stop-loss and the current market parameters and then to execute the trade based on that calculated position size.

    • Attaching Position Sizer to a chart will automatically set an entry level to the current price, preparing for a market buy order. Stop-loss level will be set to the nearest low. Take-profit will be turned on.
    • Now, you can already use its position size output to enter a trade if you planned a market buy order with SL set to the low of the current bar and with 1% of balance risk. You can also change the position size field manually to calculate the risk based on its value.
    • If not, you can freely change the stop-loss — either by dragging the stop-loss line on the chart or by entering the value into the stop-loss input in the panel. You can also set your stop-loss as a distance in points by turning on the respective input parameter.
    • You can set your take-profit the same way. Additionally, you can quickly set the TP equal to the current SL value (or with some preset multiplier) by clicking the Take-profit button. Similar to the stop-loss, the take-profit can be set as distance in points if the respective input parameter is turned on. Multiple take-profit levels are supported when TakeProfitsNumber input parameter is set to a value greater than 1. You can also add and remove take-profits using the panel buttons.
    • If you turn ATR settings on via the EA's input parameters, you can also control the ATR values for stop-loss and take-profit calculation.
    • Adding a take-profit will turn on the display of Reward and Reward/risk ratio for your information.
    • Switching the type of order from Instant to Pending (and backwards) is done with the order type button. When Instant order is used, the Entry level will trail the current price (Bid or Ask) and cannot be changed manually. When Pending or Stop Limit (in MT5) order is used, the Entry level can be set either via panel's input or by dragging the chart line.
    • The EA will warn if the Entry level is too close to the current price in the Pending order mode and if the Stop-loss or Take-profit level is too close to the Entry level.
    • You can set the size of commission (one-way) applied by your broker if you want your potential loss to be calculated including this cost of trading.
    • Switching the account size from balance to equity or to balance minus portfolio risk can be useful in some cases and is done by one or two clicks on the respective button.
    • Adjusting the risk tolerance can be done in two ways: by setting the percentage risk value or by setting the money risk value. Both are done via the input fields in the panel. You can also use the quick risk setting buttons if you need to switch risk per trade often.
    • Moving on to the Risk tab of the panel is completely optional and provides information about your current and potential risk and reward. You can control how pending orders and orders without stop-loss/take-profit are treated in this tab.
    • The Margin tab is not necessary either if your goal is to calculate the optimal position size based on your risk and stop-loss. This tab will inform you on the amount of free and used margin resulting from your position. It will also show you what is the biggest position size that you can open with your current free margin and leverage. A custom leverage can be entered if need arises.
    • The Swaps tab can be consulted if you wish to know how costly the daily rollover will be for your position. It will be especially useful if you are using a carry trade strategy.
    • The Trading tab will help you to execute the actual trade and control how it is done.


Position Sizer Mt5.zip 售价: 1 枚金币 (一共需要3个金币) Position Sizer Mt4.zip 售价: 1 枚金币 (一共需要3个金币)
""
还没有人打赏,支持一下

评论|共 11 个

dhl

发表于 2023-5-27 21:13:42 | 显示全部楼层

感谢楼主分享

jaryk

发表于 2023-5-28 10:13:21 | 显示全部楼层

感谢楼主分享!!!!

qinbin

发表于 2023-6-15 08:41:25 | 显示全部楼层

感谢楼主分享

晃晃悠悠

发表于 2024-3-27 15:31:10 | 显示全部楼层

财神指路

发表于 2024-5-25 07:41:33 | 显示全部楼层

这是指标还是ea啊 怎么用不了

DDUP

发表于 2024-7-29 01:16:44 | 显示全部楼层

试试看

亏的裤头子脱了

发表于 2024-8-4 14:35:55 | 显示全部楼层

这个买了也不会用啊  你应该出个教程啊  在哪里设置止损金额   

phonglee

发表于 2024-8-9 17:06:40 | 显示全部楼层

亏的裤头子脱了 发表于 2024-8-4 14:35
这个买了也不会用啊  你应该出个教程啊  在哪里设置止损金额

设置好风险系数,自然根据账户余额计算止损金额,通过拉动止损位置,自动计算出手数,下单即可。

锋哥

发表于 2024-9-29 13:10:38 | 显示全部楼层

谢谢

12下一页
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则