Very simple EA required... to place a BuyStop and SellStop order at a chosen time, each with SL and TP. Then execute accordingly.

MQL4 Experts

Job finished

Execution time 1 day
Feedback from customer
Absolutely fantastic job. A pleasure to work with Lakshan - I recommend him absolutely 100% Thanks!
Feedback from employee
GREAT Customer, Very understanding . I would LOVE to work with you again Matt. Thanks for the Job .

Specification

So, initially I am looking for the script/EA to backtest the simple notion as follows:

Starting from a certain TIME, if price moves X pips in one direction, it can continue to do so for another X pips.

However I would ideally like it to run as an EA which would place the orders, execute the trades and close on SL or TP. SO for the purpose of this request I have assumed the latter. If it is too difficult or expensive etc then I might rather have a simple script/EA for backtesting only.

(Possible later additions may include eg a trailing stop, or and OCO for the orders).


I'd like it to work on any major/minor currency pair at least, but preferably anything for which standard charts are available in MT4.

I am specifically looking at the DAILY timeframe at the moment but would prefer it to also work on any LOWER timeframe.


Here are the input parameters, and examples in quotations;

Timezone: "GMT+2"

Start time: "00:01"


BUYSTOP order place above initial price (pips): "20"

BUYSTOP order expires: "23:30"

SELLSTOP order place below initial price (pips): "20"

SELLSTOP order expires: "23:30"

BUY trade TP (pips): "25"

BUY trade SL (pips): "20"

[if left blank = no TP]

SELL trade TP (pips): "25"

SELL trade SL (pips): "20"

[if left blank = no SL]


LOT size: "0.1"

(Account currency "GBP")

(Account size "1000")


So, from the parameters above here is what would happen;

At 1 minute after midnight (i.e. just after a new daily candle has started) the EA would place a BUYSTOP order 20 pips above the current price and a SELLSTOP order 20 pips below the current price.

The STOPLOSS for both trades in this example would be at the opening price at 00:01.

The TAKEPROFIT for each trade is 25 pips beyond the order.


I would like it to draw a short horizontal line on the chart for the entry point, each order, each SL, each TP, and preferably be able to choose colours as input parameters. AND for these to remain on the chart.


A nice but not important extra would be a box on the chart summarising the the CURRENT orders in both pips and prices, and a risk level in both currency and % (hence the parameters above which are in brackets) e.g:


START TIME: 00:01

START PRICE: 1.20201

LOTS: 0.1

EXPIRES: 23:30


BUYSTOP:

ORDER: 1.20401 (20 pips away)

TP: 1.20651 (25 pips)

SL: 1.20201 (20 pips)

RISK: 20GBP, 2%


SELLSTOP:

ORDER: 1.20001 (20 pips away)

TP: 1.19751 (25 pips)

SL: 1.20201 (20 pips)

RISK: 20GBP, 2%



Responded

1
Developer 1
Rating
(584)
Projects
915
46%
Arbitration
31
39% / 29%
Overdue
93
10%
Working
3
Developer 3
Rating
(590)
Projects
789
71%
Arbitration
9
33% / 33%
Overdue
22
3%
Free
4
Developer 4
Rating
(190)
Projects
194
27%
Arbitration
0
Overdue
3
2%
Free
5
Developer 5
Rating
(365)
Projects
412
36%
Arbitration
35
26% / 57%
Overdue
63
15%
Free
7
Developer 7
Rating
(362)
Projects
496
39%
Arbitration
27
56% / 4%
Overdue
53
11%
Free
8
Developer 8
Rating
(195)
Projects
317
35%
Arbitration
64
13% / 56%
Overdue
82
26%
Free
9
Developer 9
Rating
(561)
Projects
928
48%
Arbitration
301
59% / 25%
Overdue
123
13%
Loaded
10
Developer 10
Rating
(117)
Projects
138
41%
Arbitration
30
7% / 77%
Overdue
17
12%
Free
11
Developer 11
Rating
(48)
Projects
73
37%
Arbitration
22
9% / 41%
Overdue
14
19%
Working
12
Developer 12
Rating
(878)
Projects
1391
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Free
14
Developer 14
Rating
(14)
Projects
23
17%
Arbitration
3
0% / 100%
Overdue
5
22%
Free
15
Developer 15
Rating
(1852)
Projects
3454
88%
Arbitration
73
40% / 15%
Overdue
265
8%
Free
16
Developer 16
Rating
(5)
Projects
14
86%
Arbitration
2
0% / 100%
Overdue
1
7%
Free
17
Developer 17
Rating
(2398)
Projects
3011
65%
Arbitration
76
47% / 14%
Overdue
340
11%
Working
18
Developer 18
Rating
(221)
Projects
369
66%
Arbitration
10
50% / 0%
Overdue
46
12%
Free
19
Developer 19
Rating
(188)
Projects
212
58%
Arbitration
9
11% / 89%
Overdue
8
4%
Free
20
Developer 20
Rating
(94)
Projects
148
59%
Arbitration
16
38% / 13%
Overdue
25
17%
Free
Similar orders
I want to Convert Tradingview Indicator to MQ4 file. Then I want to create MT4 EA. I will provide you with previous EA source Code That I used to apply it for the new indicator. You may use it or create new one with same functions. Functions like Martingale, Grid, TP SL, Time for trading, ect as shown in the EA provided as a guide to follow. You may replace the main indicator in my previous EA source code to the new
Hello, I need an EA for both MQL4 and MQL5 that complies with the following rules; A maximum daily drawdown of 4%. This means it should close all trades after a 4% loss and not trade for the rest of the day. It should not use martingale, No grid trading, No trade stacking (opening three or more trades at the same time in the same direction), trades should spends minutes before closing. The EA should also be able to
AMBER HEADSTONE EA STEP ONE : On the 1H time frame draw a horizontal line at the end of the 7 th candle after the period separator STEP TWO : Wait for the close of the 8 th either above or below the horizontal line. When the 8 th candle of the 1H time frame closes above the horizontal line it is our first signal of buy while, when the 8 th candle of the 1H time frame closes bellow the horizontal line it is our first
I need to resolve some bugs that my indicator presents and convert it to mql5 , it task is remote via "anydesk" The task will be done alone and only through "anydesk", it is my way of working, if you do not have a problem with it, write to me privately to start working
Hi i need a indicator be turned into forex robot THOSE TWO INDICATORS ARE REVERSAL INDICATORS I WANT THEM TO BE COMBINED BUY ON UPTREND SELL ON DOWNTREND CONTINUE TO OPEN TRADES ACCORDING TO THE TREND USING BUILT-IN RISK 1% OF THE ACCOUNT PARAMETER LOTS SIZE, STOPLOSS THE EA MUST WORK ON EVERYTIME FRAME BE ABLE TO TRADE INDICES, FX PAIRS, COMMODITIES
I want someone who can turn my trading strategy in a bot.... To execute automated trades... Strategy is simply based on two moving averages, when they cross pass. Bot must be fully automated
I have the ea with me , can you please change the comment? i only got the ex4 file with me , please do chnage the comment only and i need you to put license and cloud lock to this ea can any body do it
Hello, I am looking for someone that can develop for me a trading bot, that can trade on Crash 500 and 1000, and also on Boom 500 and 1000. The bot must buy on Crash 500 and 1000 and sell on Boom 500 and 1000. The indicator we use is the Awesome Oscillator. The CRASH 500/1000 we scalp it by buying. We only place our ENTRY that is to BUY when the Awesome Oscillator changes from VALUE DOWN to VALUE UP and by changing I
Hi there, I need a profitable MT5 trading robot with confirmed profitable results. It can be for any major pair, I just need a profitable bot, on autopilot. If you have a profitable bot, please contact me. And if possible, will need to test it for sometime before I purchase it
1. I want function that will use the totalBuyLots and totalSellLots to place trades when there is reverse trade direction. For example, if there is an open trade of buy, 0.1, 0.1, 0.1, then if the trade direction change to sell, meaning a sell trad is opened, then the totalBuyLots which now 0.3 will be used to open the sell of 0.3 lots. Same if a sell trade is opened first, then total lots will be use d when

Project information

Budget
30 - 300 USD
For the developer
27 - 270 USD