A hedging EA for breakouts

MQL4 Experts

Specification

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.


                  Responded

                  1
                  Developer 1
                  Rating
                  (27)
                  Projects
                  27
                  26%
                  Arbitration
                  0
                  Overdue
                  0
                  Free
                  2
                  Developer 2
                  Rating
                  (56)
                  Projects
                  176
                  71%
                  Arbitration
                  4
                  100% / 0%
                  Overdue
                  1
                  1%
                  Free
                  3
                  Developer 3
                  Rating
                  (548)
                  Projects
                  1330
                  59%
                  Arbitration
                  28
                  82% / 0%
                  Overdue
                  10
                  1%
                  Free
                  4
                  Developer 4
                  Rating
                  (17)
                  Projects
                  17
                  18%
                  Arbitration
                  5
                  20% / 60%
                  Overdue
                  2
                  12%
                  Working
                  Similar orders
                  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
                  1) the EA can compound the lot size from 0.01 to 0.02 so on 2) the EA must able to trade different kind of pair 3) the EA will have stoploss or take profit 4) long term profit 5) for equiry will be 100 for every 0.01 lot Developer will have that kind of EA may apply and introduce any investor account! this EA must have mql4 file
                  p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Helvetica Neue'} Hello Looking for someone to help me improve my current strategy on my own algorithm and to also add hedging mode
                  I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then

                  Project information

                  Budget
                  30 - 50 USD
                  For the developer
                  27 - 45 USD
                  Deadline
                  from 2 to 10 day(s)