A hedging EA for breakouts

MQL4 专家

指定

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545; min-height: 14.0px} li.li1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #454545} ol.ol1 {list-style-type: decimal} ul.ul1 {list-style-type: hyphen}

A hedging EA that works on any time frame and any pair


Inputs:

One trade at a time

One trade per day: toggle yes/no

Fixed lot - standard 0.1

Max spread - standard 5

Gap (pip difference between buy and sell orders): standard 10 pips

TP: standard 20 pips

SL: standard 30 pips


Strategy:

Setup:

    - Open a buy_stop_order_1 at price + “Gap/2” pips

    - Open a sell_stop_order_1 at price - “Gap/2” pips 


    First move:  

      - If buy_stop_order_1 is executed, cancel sell_stop-order_1, and open sell_stop_order_2 at same price with lot size x2

      - If sell_stop_order_1 is executed, cancel buy_stop_order_1, and open buy_stop_order_2 at same price with lot size x2

      - If any order hits TP directly, cancel other pending order.


      Here, if the buy order is executed and price goes up to TP, all good. If price comes down, we have a new sell stop order with added lot size to cover the buy order. Same idea if the sell stop order activates first and price doesn’t hit TP.


      Next moves, while TP is not hit in any direction and price floats inside SLs range:

      - If buy_stop_order_2 is executed, cancel sell_stop-order_2, and open sell_stop_order_3 at same price with lot size x2
      - If sell_stop_order_2 is executed, cancel buy_stop_order_2, and open buy_stop_order_3 at same price with lot size x2



      Example:


      Price is 1.0050

      - Set BSO_1 at 1.0055, Lot 0.1, TP 1.075, SL 1.025
      - Set SSO_1 at 1.0045, Lot 0.1, TP 1.025, SL 1.075


        If Price moves up and executes BSO_1:

        - Cancel SSO_1
        - Set SSO_2 at 1.0045, Lot 0.2, TP 1.025, SL 1.075


        Now, price can either:

        (1) hit TP:

        - Cancel pending SSO_2

          (2) or execute SSO_2:

          - Set BSO_2 at 1.0055, Lot 0.2, TP 1.075, SL 1.025


            Now, again, price can either:

            (1) hit TP:

            - Cancel pending BSO_2

              (2) or execute BSO_2:

              - Set SSO_3 at 1.0055, Lot 0.2, TP 1.075, SL 1.025


                Strategy repeats until price hits TP, with lot size increasing for the opposite pending order by 2 lot sizes every time. In this case, if price goes down and hit SSO_3, it would trigger a new BSO_3:

                - Set BSO_3 at at 1.0055, Lot 0.2, TP 1.075, SL 1.025


                  The direction of the last executed order always carries 1 lot size more than the opposite direction. If the trade changes direction, the pending order keeps the same balance over and over until TP hits.


                  反馈

                  1
                  开发者 1
                  等级
                  (27)
                  项目
                  27
                  26%
                  仲裁
                  0
                  逾期
                  0
                  空闲
                  2
                  开发者 2
                  等级
                  (56)
                  项目
                  176
                  71%
                  仲裁
                  4
                  100% / 0%
                  逾期
                  1
                  1%
                  空闲
                  3
                  开发者 3
                  等级
                  (548)
                  项目
                  1330
                  59%
                  仲裁
                  28
                  82% / 0%
                  逾期
                  10
                  1%
                  空闲
                  4
                  开发者 4
                  等级
                  (17)
                  项目
                  17
                  18%
                  仲裁
                  5
                  20% / 60%
                  逾期
                  2
                  12%
                  工作中
                  相似订单
                  Pinescript code 60 - 100 USD
                  i need to convert this pinescript to ea mql4 exactly as original, consider my budget, i have also other project so if you are avalable and have enough time consider to take also other pinescript project
                  Hi, I have an indicator from my friend, I want to copy it to MT5 can you do that for me. Here is the link
                  Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
                  Need ea according to stochastic divergence (both hidden and regular) plus candlestick flip .. need for experinced developers to complete my order with 99percent accuracy. So bet for it the budged is fixed and other plugins will be added in the v2
                  Martingle EA 30+ USD
                  Create martingle grid EA with my own logic. Add Moving Avarage Filter. 2 engine with same logic. Sl TP by $ amount. Profit loss Dashboard Virtual all trade close Button
                  I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. When sending
                  I need a graphic designer that is good at voice overs and object animation. I have a dialogue project that I intend it to deliver a certain message for marketing purposes. The project is to be done by cartoons and they should be much humanized in terms of graphics. The project has to be in the form of video that lasts up to 3 minutes longest and not less than 2 minutes. Creativity is the most important requirement
                  I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
                  RSI trading bot 50 - 80 USD
                  Good morning, I'm looking to have an RSI based trading bot developed, which focuses on having many options for closing trades in order to diversify my trading opportunities, and to be good for experimentation in backtesting. Here are the features I'd like: -Being able to have as many of the following options activated as I want, to try all combinations of them -To work on all timeframes, though I will be focusing on
                  Looking for an EA which can produce less than 5% drawdown. Also profit factor above 1.5 (preferably 2.0) Please give me proper explanation how your EA works too Has anyone programmed it before? is it limited to forex only

                  项目信息

                  预算
                  30 - 50 USD
                  开发人员
                  27 - 45 USD
                  截止日期
                   2  10 天