Order Cancels Order (OCO) for MT4

MQL4 Experts

Specification

1.       The OCO EA sets 2 orders simultaneously.  I want to get in at a specific price.   I do not know which direction the market will go – Long or Short.  If the market goes long and triggers my long entry, the short order is cancelled.  And vice versa.

2.       Should work with brokers who use both 4 or 5 pip digits.

3.       The solid green line in the attached picture is my Buy Stop (goes long if touched).

4.       The dotted green line in the attached picture is my Stop Loss for my Buy Stop.

5.       The solid red line in the attached picture is my Sell Stop (goes short if touched).

6.       The dotted red line in the attached picture is my Stop Loss for my Sell Stop.

7.       When I activate the OCO, lines should be automatically drawn on the chart.  The Buy Stop is automatically placed 150 pips above the high of the last candle.   The sell stop is automatically placed 150 pips below the low of the last candle.  The stop loss for the Buy Stop should automatically be placed 100 pips above the high of the last candle (or 50 pips below the Buy Stop).  The stop loss for the Sell Stop should automatically be placed 100 pips below the low of the last candle (or 50 pips above the Sell Stop). 

8.       I should be able to place my cursor on any of the lines and manually move them to the exact location I desire.

9.       Trailing Stop:  An input needs to be programmed that is set to True or False.   When it is True, the trailing stop is activated.  False – The trailing stop is not activated.  If it is activated, it should trail price by 100 pips.   As with the lines mentioned above, the trailing stop line should be automatically drawn on the chart AND I should be able to define in the input section the amount of pips that it should trail.  

10.   Take Profit:  An input needs to be programmed that is set to True or False.  When it is True, the Take Profit is activated.  False – The Take Profit is not activated.   If it is activated, it I should be able to input the number of pips that will trigger the take profit which will close the trade.   If activated, the take profit line should be automatically drawn on the chart AND I should be able to place my cursor on the line and manually move it to the exact location I desire.

 

11.   The input parameters that I can adjust should be:

    Buy Stop                        150

Stop Loss for Buy Stop    100

Sell Stop                        150

Stop Loss for Sell Stop    100

Trailing Stop                  True or False (this should be a dropdown box allowing me to select T or F)

Trailing Stop in pips       This field should be blank so I can input the number of pips

Take Profit                    True or False (this should be a dropdown box allowing me to select T or F)

Take Profit in pips         This field should be blank so I can input the number of pips


12.   I should be able to change settings in the middle of a trade.  For example:   If I place the OCO with a fixed stop loss and a couple of days later turn off the stop loss and activate the trailing stop.  

13.   When I place the OCO EA on the chart, an OCO panel should be placed on the top left of my chart from which I can easily change certain parameters.

 

Optional Depending on Price to program this OCO EA:

 

If I am trading EURUSD:  I want to be able to set OCOs on different time frames independent of each other.  For example:  The OCO on daily chart will not affect the OCO on the 15 minute chart when running at the same time for the same symbol.   If I close the 15 minute OCO it should not close the daily OCO.


Responded

1
Developer 1
Rating
(26)
Projects
34
26%
Arbitration
7
14% / 43%
Overdue
7
21%
Free
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
2
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(70)
Projects
86
31%
Arbitration
1
100% / 0%
Overdue
1
1%
Free
4
Developer 4
Rating
(257)
Projects
341
58%
Arbitration
7
14% / 71%
Overdue
9
3%
Free
5
Developer 5
Rating
(264)
Projects
538
50%
Arbitration
55
40% / 36%
Overdue
224
42%
Working
6
Developer 6
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
7
Developer 7
Rating
(277)
Projects
334
55%
Arbitration
14
36% / 29%
Overdue
1
0%
Free
Similar orders
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en

Project information

Budget
30 - 31 USD
For the developer
27 - 27.9 USD