Simple EA- 20 minutes work

Experts

Job finished

Execution time 3 days

Specification

Simple EA needs to be coded in mql4: only 1 position open at the same time, works on all charts & time frames, no position sizing or anything. Based on 1 indicator: if both lengths are up, go long, vice versa for short, if 1 of the 2 lengths is no longer the same sign, close, or use ATR-based trailing stop: whichever hits first, so you have 3 external variables: Length1, Length2 and ATRmultiple.                                                

Different lengths are used so you get 2 criteria for entry:

If there is no open position:  at the close of the bar:

Entry long: if IndicatorLength1[i] > IndicatorLength1[i+1] && IndicatorLength2[i] > IndicatorLength2[i+1] // so both are going up

Exit Long: if both of them are no longer going up: so if IndicatorLength1[i] < IndicatorLength1[i+1] || IndicatorLength2[i] < IndicatorLength2[i+1] 

Entry short: if IndicatorLength1[i] < IndicatorLength1[i+1] && IndicatorLength2[i] < IndicatorLength2[i+1] // so both are going down

Exit short: if both of them are no longer going down: so if IndicatorLength1[i] > IndicatorLength1[i+1] || IndicatorLength2[i] > IndicatorLength2[i+1] 

********************* 

If there is an open position: at the close of the bar: reverse it only if both have the same sign that is opposite to the previous direction, else you close the open position:

so if you are long, if 1 of the 2 is no longer going up: close it,                                                                                                                                                                                                                        if at the close of the bar, both of them are going down, close long and open short position.

If you are short, if 1 of the 2 is no longer going down: cover the short position,                                                                                                                                                                                               if at the close of the bar, both of them are going up, cover the short and open a long position. 

*********************

to protect profitable positions I want a trailing stop that is a multiple of the ATR: Average True Range, basic indicator. Standard setting could be a 1.5*ATR(10). So this 1.5 should be changeable. The trailing stop needs to be updated every tick. Off course a trailing stop starts out as a classic stop loss: at the opening of the position, the stop is there, so if the position only goes against me, the EA will exit the trade at the entry level +/- 1.5*ATR(10).

 *********************

I prefer not to share the indicator, so please work with code that would enable me to replace wit iCustom: you can use a simple moving average as example code:

for(int i=0; i<limit; i++)

   {  

   ExtMapBuffer0[i]=iMA(0,0,Length1,0,0,0,i);

   } 


Responded

1
Developer 1
Rating
(41)
Projects
124
34%
Arbitration
32
13% / 75%
Overdue
53
43%
Free
2
Developer 2
Rating
(647)
Projects
1295
67%
Arbitration
84
26% / 49%
Overdue
338
26%
Free
Similar orders
Hi I'm looking for a professional programmer to modify my EA the EA send signal alert to telegram and screen shot of the chart patterns my EA is dased to the harmonic pattern but I want to see on the screen shot the pattern of the harmonic pattern and on the chat as well
Hello I need create simple trend first candle session EA. Ea wait for first M5/M15/M30/H1 (all possible timeframes to choose) candle at asian, european and NYC session and open buy/sell stop order above (in long situation) or below (in short situation) x points from highest/lowest point of the first candle. + trailing stop loss stop loss take profit breakeven magic key
Hello Guys ! Looking for a developer to create a EA for my Buy and Sell No repaint indicator. I only have the EX4 indicator file and I want the EA to take trades according to the Buy and sells signals generated by the Indicator. Here are some inputs I want for the EA: - Trailing stop - TP and SL ( in pips ) - Entries, TP and SL ( based on opposite signals arrow ) - Daily target ( in Dollars $ or % ) - Trading hours -
I need a robot that copies the orders sent in the telegram group to MT4 or MT5 so that I can configure the parameters. I would like it to have functions so I can enter and exit negotiations according to my configuration parameters
i need to delegate this job. XAUUSD H4 MT4 i have an ea with source code with smc, fvg, orderblocks and fibonacci, i need to fix somethings and add some features for live markets, any new ideas are accepted, i need also a 4 years backtest report (of metatrader 4). if you have good price and feedbacks and you want work for me also for new jobs apply for this job it's not urgent i need only a good price
Hello, I hope you are well. I have an alert/s that I would like to provide buy and sell orders. The alerts are named *ENTRY* and *EXIT*, so the EA will know what to do. I would like the EA to have the following parameters: 1. Select the number of trades per currency pair 2. Time to trade: Time to start trading to time to end trading - I would like 4 different times to be able to be entered 3. Option to choose which
Order Manager 30 - 60 USD
I am looking for a programmer to develop an Expert Advisor (EA) for order management, which will be used alongside simpler EAs. This EA should include advanced functionalities for efficient and personalized management. **Key Features:** 1. **Comprehensive Information Panel:** - **Order Visualization:** Display all open orders by currency pair, including short and long positions. - **Font Resizing Option:** Allow
Hello! I'm looking for an Expert Advisor that will identify Fair Value Gaps above or below a Simple Moving Average line and take sells when price is above the line and buys when price is below the line. It will take only one trade at a time. It will not take a trade when price is within a number of pips (a parameter) of the SMA. I would like a copy of the source code. When a trade is entered, a text message will be
Hi All I'm searching for a Boom and Crash EA that consistently generates profit. The EA must maintain a drawdown below 40% at all times from 2020 to 2024, ensuring this level each month. I'd like to test it in demo mode for 2-3 days before completing the full payment. : note - you need to work on logic
Hello, I purchased a TradingView script that works very well, but it doesn’t have any alerts. All I need are alerts programmed so I don’t have to sit behind the chart watching it all the time

Project information

Budget
20 - 30 USD
VAT (21%): 4.2 - 6.3 USD
Total: 24.2 - 36.3 USD
For the developer
18 - 27 USD
Deadline
1 day(s)