EA in MQL4 using simple candle pivot patterns

Esperti

Lavoro terminato

Tempo di esecuzione 1 giorno
Feedback del dipendente
thank you, good work.

Specifiche

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"

Con risposta

1
Sviluppatore 1
Valutazioni
(41)
Progetti
124
34%
Arbitraggio
32
13% / 75%
In ritardo
53
43%
Gratuito
Ordini simili
I need an expert advisor for mql5 that can: - open buy order with each bullish candle close - open sell order after each bearish candle close - close any bullish trades if a bearish candle is formed - close any bearish trades if a bullish candle is formed Further, this EA should be able to trade in bias with the trend. For example it should take buys only when the candles are above the 25 moving average and should
Trading ea 300 - 5000 USD
I need an EA for both MT4 and MT5 that can work on both demo and live account with this features : 1. Trading 24/7 2. Connected to the news 3. Pauses during high effective news 4. Has a footprint tool for accurate signals 5. Always aims foe a higher profit 6. High frequency Scalping 7. Auto lot size 8. Capable to work on 1000$ capital and less 9. zero losses 10. Works on any chart 11. When it is installed in any
This is the ea I will be looking to do 2 jobs this one then another one later. Indicator is 528 lines of code EA is 703 lines of code Dashboard Is 5034 Lines of code I want to remove the dashboard form the indicator and add it to the dashboard like this and add these features to it Indicator Changes I want to change the indicator The Moving Average Ribbon I want to Add a input to make it fill out or hollow like it is
I am looking for someone who has experience working with the ZigZag indicator. I want to create a multi timeframe dashboard scanner based on ZigZag. I will explain more in private messages. if you feel capable & interest with that,please pm me for more details. thanks
The ZONE RECOVERY/HEDGING STRATEGY will be on a timeframe where each strategy is independent and pending orders should be placed at the high and low of the candlestick. If it is a buy, then the pending order at the high of the candlestick will be triggered, and if it is a sell, then the pending order at the low of the candlestick will be triggered. If the market breaks the high of the candlestick, then the pending
I'm a programmer but I'm looking for experienced programmer to create 1 harmonic pattern 121 HARMONIC PATTERN EA scanner that send alert with arrow on screen without open trades Must contain graphical design .. the window .. the columns the raws the scroll bar the buttons and the pattern it self on the chart .. that is graphical design and i want to see all historical patterns that already happened TIME FRAME H4
Maphen 30 - 200 USD
This bot will put buy stops order or sell stops order 20 pips away 10 seconds before nfp new and cpi news and it should also put take profit 100 pips this is the bot i desire. And it will activate only 15:30 UTC
I'm a programmer but I'm looking for experienced programmer to create 1 harmonic pattern THREE DRIVE HARMONIC PATTERN EA scanner that send alert with arrow on screen without open trades Must contain graphical design .. the window .. the columns the raws the scroll bar the buttons and the pattern it self on the chart .. that is graphical design and i want to see all historical patterns that already happened TIME
Hi, i want to create EA that using martingale and hedge system working on metatrader 4 and has some options to be manually changed in the bot options i need expert in this strategy to do this job note that strategy is very simple no indicator needed unless moving average
Hi there, I have an MT5 EA with its source code that I would like to convert to MT4 and enhance with additional features. Currently, the EA functions as a cost-averaging and martingale EA. When I want to trade only buy or only sell, I place the EA on one chart. To trade both buy and sell, I place the EA on two charts. Each leg (buy and sell) operates independently with its own parameters. The EA does not use any

Informazioni sul progetto

Budget
15 - 30 USD
Per lo sviluppatore
13.5 - 27 USD
Scadenze
da 5 a 10 giorno(i)