EA that opens trade after X bars in same direction, and exits after Y bars in opposite direction

MQL5 Esperti

Lavoro terminato

Tempo di esecuzione 4 giorni
Feedback del cliente
Very clean and efficient code. Asks clear questions to clarify some issues. Fixes problems rapidly. Highly recommend!
Feedback del dipendente
Excellent client. Was agreeable when I made a big mistake at the start and waited for me to sort things out.

Specifiche

Hello all! I'm looking for a good MQL5 programmer to come up with a clear and straightforward code for this strategy. I can read code, and understand the flow of it. I just can't write it from scratch. Help! :P


The strategy of the EA is to check the direction of a bar at the end of each bar, on whatever time period it is set on. If X bars in a row are in the same direction, at trade is initiated at the beginning of the next bar. The trade is either in the same direction that the bars are going (good on short timeframes) or in the opposite direction (good on long timeframes). The trade exits on Y amount of consecutive bars in the same direction (high number on short timeframes, short number on long timeframes)

Here's an example of a position being opened in the opposite direction the bars are going. X=2, Y =1, meaning a trade is entered after 2 bars in a row close in the same direction. The trade is exited once a bar closes in the opposite direction. 

reverse example


I envisions bars in a row as being counted as a group. So if X (bras in a row) was 3, then 3 bars in a row would form a group, and the next bars would for a new group. A stop loss or take profit would reset these groups to 0. However, since a SL or TP would happen somewhere in a bar rather than at the absolute beginning or end, the rest of the bar would be counted as the first bar in a new series.


stop loss resets count


In shorter time frames, sometimes a streak of bars in the same direction will be broken by a lone bar in the opposite direction, making a potentially huge trade become a puny one. Hence the Y number of bars in the opposite direction to exit the trade.

Also, again mostly on smaller timeframes, many bars in a row will appear, more than usual, and could trigger a big trade if we were to enter multiple orders on it. All orders are closed once the exit signal is present though.

variable y exit and multiple lots

Finally, the EA needs to work on multiple timeframes and symbols at once. For example, EURUSD 1day opposite and GPBUSD 5 min same run at the same time, triggering different trades without cancelling one another


Inputs:

Direction of the entry (same, opposite)

Number of X for entry

Number of Y for exit

Stop loss

Take profit

Trailing stop

Lot: fixed amount or % of account balance (both options) 

Multiple orders




Feel free to ask questions and clarifications!

Con risposta

1
Sviluppatore 1
Valutazioni
(119)
Progetti
127
41%
Arbitraggio
3
33% / 67%
In ritardo
0
Gratuito
2
Sviluppatore 2
Valutazioni
(229)
Progetti
339
49%
Arbitraggio
21
5% / 33%
In ritardo
24
7%
Gratuito
3
Sviluppatore 3
Valutazioni
(101)
Progetti
136
36%
Arbitraggio
14
29% / 50%
In ritardo
15
11%
Gratuito
4
Sviluppatore 4
Valutazioni
(2428)
Progetti
3057
66%
Arbitraggio
77
48% / 14%
In ritardo
340
11%
In elaborazione
5
Sviluppatore 5
Valutazioni
(88)
Progetti
143
39%
Arbitraggio
21
19% / 48%
In ritardo
30
21%
Gratuito
6
Sviluppatore 6
Valutazioni
(490)
Progetti
1016
58%
Arbitraggio
29
28% / 24%
In ritardo
132
13%
In elaborazione
Ordini simili
Hi There, my name is Jordan and I’m based in Australia. I’m looking to get an EA developed through freelance work and I’ve outlined some rough details of the intended EA, which is a similar concept to an existing EA by Andrii Hurin called “Time Range Sweep EA”. There are quite a lot of similarities to the reference EA and these include: · Trade on any market and instrument or on several pairs at the same time
Hello, Looking to create an arbitrage EA for MT5. The EA will run on two local MT5 instances (ex. 2 different accounts) and keep track of a certain pair price every 10 seconds. The EA will send data from instance #1 to instance #2 and vice versa. The EA will execute trades on the two accounts if a set of conditions are met. Apply if you have the experience and knowledge
I have an algo that is running on ProRealTime, they have their own language. It is a simple strategy with 5 conditions + SL/TP settings, very basic. I need someone that can convert or just create a functional MT5 algo (EA) from these conditions for me, if you do a good job I have around 10+ more algos that need to be transferred to MT5
Creating of an expert advisor or trading bot that uses a Top Down analysis (using monthly, weekly, daily, hourly, minutes ( 30, 15, 5, 1) to determine trade direction or trend direction and makes multiple trade decisions for mt4. You can use or combine accurate trend indicators. Posted earlier
Dear Developers, I would have a very simple request. I have a ML model developed in Python for EURUSD daily trading. I would like to backtest it in Meta Trader 5 using the Strategy Tester tool. For that I would need an Expert Advisor program. The input would be a csv file that contains two columns: - dates (going back for a few years on a daily basis) - trading signal (it can have only 2 values, either 1: Buy, or -1
Good day i will need a developer to create an EA for me using existing trading view indicator .The EA will open after the indicator has given signal and will close if altenate signal comes.The trading view indicator will be shared and improvement is welcome
Creating of an expert advisor or trading bot that uses a Top Down analysis (using monthly, weekly, daily, hourly, minutes ( 30, 15, 5, 1) to determine trade direction or trend direction and makes multiple trade decisions for mt4. You can use or combine accurate trend indicators
Creating of an expert advisor or trading bot that uses a Top Down analysis (using monthly, weekly, daily, hourly, minutes ( 30, 15, 5, 1) to determine trade direction or trend direction and makes multiple trade decisions for mt4. You can use or combine accurate trend indicators
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I

Informazioni sul progetto

Budget
30 - 60 USD
Per lo sviluppatore
27 - 54 USD