EA in MQL4 using simple candle pivot patterns

Experts

Job finished

Execution time 1 day
Feedback from employee
thank you, good work.

Specification

The idea:

To begin with this strategy has been tested with IT-charts backtesting method and gives about 50-50 of the trades either on the profit or the loss site. However the profitable trades generate around three times more profit than the loosing trades are causing losses. The end result gives a net profit after 3 months ideally (if all signals are executed at the very time they come out) at 2500 points given that all positions are open as 1. The method has been used for about a month for trading with DJIA and Forex (EUR/USD) at 2 hours and 4 hours charts respectivelly and due to practical reasons (i.e. not being able to execute all signals) ended up with lower profits than expected at around 400 points. The main problem as with many strategies is that an average person can not follow all signals as these are coming out on a 24/hour-basis.

The method is based on simple 3, 4 and 5 candle set patterns and defines a bearish or a bullish pivot points (trend reversal).

Example of 3 candle sets: (The candles are numbered as 2-1-0 with the 0 being the most recent one). We have a bullish pivot point whereas candle 1 has lower low than candle 2 and candle 1 has lower high than candle 2 and candle 0 crosses over the high of candle 1. The program should automatically exit all short positions should there are any open and automatically open a long position at the time of crossing without any manual intervention. Of course the reverse (i.e. sell all long positions and sell short simultaneously should be executed in case of a bearish signal).

I can provide all help that might be needed so that the developer gets a clear picture of what is needed. Please also see below the rules that I wrote in IT-chart build-in language if that helps.


The rules I am using in the IT-charts custom indicator, in case they are of any help are as follows:

ONCE S3 = 0
ONCE S4 = 0

ONCE S5 = 0


//NOTE: S3, S4 and S5 are sets of 3, 4 and 5 candles respectively

//NOTE: Values of the above can only take the values of 1 (for bullish, - 1 for bearish, or 0 (for no signal).

//NOTE: The following code defines the rules based on highs and lows of the involved candles:


IF LOW[0] < LOW[1] AND LOW[1] > LOW[2] AND HIGH[0] < HIGH[1] AND HIGH[1] > HIGH[2] THEN
    S3 = -1
ELSIF LOW[0] > LOW[1] AND LOW[1] < LOW[2] AND HIGH[0] > HIGH[1] AND HIGH[1] < HIGH[2] THEN
    S3 = 1
ELSE
    S3 = 0
ENDIF

IF LOW[0] < LOW[1] AND LOW[3] < LOW[1] AND HIGH[0] < HIGH[1] AND HIGH[3] < HIGH[1] AND HIGH[2] < HIGH[1] AND LOW[2] > LOW[1] THEN
    S4 = -1
ELSIF LOW[0] < LOW[2] AND LOW[3] < LOW[2] AND HIGH[0] < HIGH[2] AND HIGH[3] < HIGH[2] AND HIGH[1] < HIGH[2] AND LOW[1] > LOW[2] THEN
    S4 = -1
ELSIF LOW[0] > LOW[2] AND LOW[3] > LOW[2] AND HIGH[3] > HIGH[2] AND HIGH[0] > HIGH[2] AND HIGH[1] < HIGH[2] AND LOW[1] > LOW[2] THEN
    S4 = 1
ELSIF LOW[0] > LOW[1] AND LOW[3] > LOW[1] AND HIGH[0] > HIGH[1] AND HIGH[3] > HIGH[1] AND HIGH[2] < HIGH[1] AND LOW[2] > LOW[1] THEN
    S4 = 1
ELSIF LOW[0] < LOW[2] AND LOW[3] < LOW[2] AND HIGH[0] < MAX(HIGH[2],HIGH[1]) AND HIGH[3] < MAX(HIGH[2],HIGH[1]) AND LOW[1] = LOW[2] AND HIGH[0] < MAX(HIGH[1],HIGH[2]) THEN
    S4 = -1
ELSIF LOW[0] > MIN(LOW[1],LOW[2]) AND LOW[3] > MIN(LOW[1],LOW[2]) AND HIGH[0] > HIGH[1] AND HIGH[3] > HIGH[1] AND HIGH[2] = HIGH[1] AND LOW[3] > MIN(LOW[1],LOW[2]) THEN
    S4 = 1
ELSE
    S4 = 0
ENDIF

IF LOW[0] < LOW[2] AND LOW[4] < LOW[2] AND HIGH[0] < HIGH[2] AND HIGH[4] < HIGH[2] AND HIGH[1] < HIGH[2] AND HIGH[3] < HIGH[2] AND LOW[1] > LOW[2] AND LOW[3] > LOW[2] THEN
    S5 = -1
ELSIF HIGH[0] > HIGH[2] AND HIGH[4] > HIGH[2] AND LOW[0] > LOW[2] AND LOW[4] > LOW[2] AND LOW[1] > LOW[2] AND LOW[3] > LOW[2] AND HIGH[1] < HIGH[2] AND HIGH[3] < HIGH[2] THEN
    S5 = 1
ELSIF HIGH[1] > HIGH[0] AND HIGH[1] > HIGH[4] AND LOW[1] > LOW[0] AND LOW[1] > LOW[4] AND HIGH[2] < HIGH[1] AND HIGH[3] < HIGH[1] AND LOW[3] > LOW[1] AND LOW[2] > LOW[1] THEN
    S5 = -1
ELSIF HIGH[3] > HIGH[0] AND HIGH[3] > HIGH[4] AND LOW[3] > LOW[0] AND LOW[3] > LOW[4] AND HIGH[2] < HIGH[3] AND HIGH[1] < HIGH[3] AND LOW[1] > LOW[3] AND LOW[2] > LOW[3] THEN
    S5 = -1
ELSIF LOW[1] < LOW[0] AND LOW[1] < LOW[4] AND HIGH[1] < HIGH[0] AND HIGH[1] < HIGH[4] AND HIGH[2] < HIGH[1] AND HIGH[3] < HIGH[1] AND LOW[2] > LOW[1] AND LOW[3] > LOW[1] THEN
    S5 = 1
ELSIF LOW[3] < LOW[0] AND LOW[3] < LOW[4] AND HIGH[3] < HIGH[0] AND HIGH[3] < HIGH[4] AND HIGH[2] < HIGH[3] AND HIGH[1] < HIGH[3] AND LOW[2] > LOW[3] AND LOW[1] > LOW[3] THEN
    S5 = 1
ELSE
    S5 = 0

ENDIF


// The following part of the code checks the crossing event and gives the price at which the order should be executed. P for price.


ONCE P = 0

IF S3 = 1 THEN
    P = HIGH[1]
ELSIF S3 = -1 THEN
    P = LOW[1]
ELSIF S4 = 1 THEN
    P = MAX(HIGH[1],HIGH[2])
ELSIF S4 = -1 THEN
    P = MIN(LOW[1],LOW[2])
ELSIF S5 = 1 THEN
    P = MAX(MAX(HIGH[1],HIGH[2]),HIGH[3])
ELSIF S5 = -1 THEN
    P = MIN(MIN(LOW[1],LOW[2]),LOW[3])
ELSE
    P = 0
ENDIF

RETURN S as "signal", P AS "PRICE OF SIGNAL"

Responded

1
Developer 1
Rating
(41)
Projects
124
34%
Arbitration
32
13% / 75%
Overdue
53
43%
Free
Similar orders
I need a pre-build MT4/ MT5 bot with following requirements- 1. Bot works good on 5 or 15 Min chart on any currency or crypto pair. 2. Gives Approx Min 70% Win Rate and Max 5% DD. 3. Gives Approx 50-80% profit monthly. Immediate payment when satisfied with results. Amount can be increased up to $1K
Mashii EA 50 - 100 USD
I need a mt5 trading bot that works off support and resistant fully automated trailing stop loss also have to work off market trend and patter and can grow small account
i need an expert to converting trading view script called Renko chart into meta trader5 EA automated robot, i need an expert that can get it done in 5 days here is the link to the code /
This Expert Advisor (EA) is designed to operate on the XAUUSDm symbol (Gold micro), using the 1-minute timeframe as the main chart and the 5-minute timeframe as the higher timeframe. It is built to follow the logic of the “Supertrend MTF Heikin Ashi Auto” indicator from TradingView, exactly as shown in the reference screenshot. The EA must fully comply with all detection, validation, and execution conditions
Money king Fx 30 - 12000 USD
I want to creat this robot to help me to makes me to be professional trade in this world, it's will be opening order itself and close them and it will be a profitable robot
PIPS COUNTER 70+ USD
Hello, I want to add very simple 2 types of counter panel with this Indicator Indicator already show its generated pips TP SL both check in pictures Mode 1 TP1 TP2 with Breakeven Counter TP1 Counter Total Signals: Win/Loss: TP 1 Pips: SL 1 Pips: Total Pips of TP1: TP2 Counter Total Signals: Win/Loss: BE Hit: ( if TP1 Hit then SL will be @ BE ) TP 2 Pips: SL 2 Pips: Total Pips of TP2: Grand Total TP1 TP2: Note this
Вот краткое описание задания. Полный документ с техническим заданием (TZ) прилагается во вложении: Советник (EA) уже реализован на платформе MetaTrader 4 и работает на основе дивергенций RSI / MACD с 8 вариантами открытия позиций (1-4 и 1A-4A). Необходимо: Интегрировать внешнюю bridge-версию индикатора “All-in-One Candlestick Pattern Scanner” (Bridge версия) через функцию iCustom() для получения информации о свечных
My oder 100000+ USD
Lebohang Ranchobe ke jola le ngwana ofeng so wabo and le yena waa nrata taw yhoooo Marr kscej a hcja wv 3hs wjw nwjw r jw ejs emw 4he wje rnw
Hello, I need an expert coder who can help me convert my tradingview pine script to mt5 EA expert advisor, This is the pine script https://ctxt.io/2/AAB4SyWXFQ&nbsp;Also I need for EA to enter trades exactly like this strategy on TradingView, i attach, please i need someone wo can do the work not time waster, Live market order should be placed on green and red indicator chart
This IMO is as simple as it gets EA ... Buy when price is above VWAP ... Sell when it is below ... Using the MA as a SL I say develop because it is never as straightforward as first imagined ... hopefully it all goes with plan A However if there is need for a plan B or C we can renegotiate the time and budget Happy to listen to your wealth of experience to create a better EA

Project information

Budget
15 - 30 USD
For the developer
13.5 - 27 USD
Deadline
from 5 to 10 day(s)