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 am seeking a developer to create a script that will integrate comprehensive Hong Kong stock market data into Sierra Chart. The integration must support both historical and real-time data, including trade details for footprint charts and full-depth order book data. I need a data provider that allows easy access to extensive historical data without restrictive limitations. The provider should support historical
I need a simple trading bot that can trade according to the strategy which will be sent.It's a price action strategy. The bot should be able to differentiate between a bull trend and a bear trend, after development, it will be tested for 2 weeks to see if it trades just according the strategy. The bot will also not be limited in terms of how many accounts it can be linked on. Thanks
An Indicator is already developed in Ami Broker AFL and needs to be Converted and further developed in a Trading strategy / EA / Auto Trade BOT on MQL5. Project will be in 3 Phases. Phase 1 - Indicator Development Phase 2 - Entry / TGT / SL Order Development. Phase 3 - Hedging / Reverse Trade Mechanism
The EA is meant for opening trades at a certain time. All parameters of trades being opened are adjustable: take profit, stop loss, opening time, opening direction (may be both directions), lot of orders. The EA has 12 settings for different opening time, however the EA can also open trades at the same time if required. Just keep in mind that the EA can perform 12 various operations at different time and with
Hi I want to create a ea that trades of this indactors POI/POC (point of control), and only during london and US session. Either market execute at POI line or pending order. Line will act as support/resistance. TP and SL set by user. Link to indicator: w w w .tradingview.com/pine/?id=PUB%3B1b9aaaaef8894a18a2fd1979aa4fa6fa Settings of indicator, see pictures Example of trade Settings of the indicator
Looking for an experienced developer for trading robot modifications (Adding ADX, MACD, and EMA indicators) Hello, I am looking for a developer with experience in integrating technical indicators into trading robots, specifically for MetaTrader 5. Here are the main modifications I want to make to my trading robot: Opening the first order: Add ADX and MACD indicators to determine a strong trend. The robot should be
simple strategy just get in and get out with % from myfxb00k sentiment anything talk letter or ForxF4ctory market sentiment, this link sample down below the problem was frozen not like real time
Hi. This For his semi automated ea button on chart for MT4. There is a lot of setting but I see there is not much difficult . This is simply based on rsi indicator use this instead of what is being used in details . Provide usual rsi settings, handsome settings from indicator setting lifetime. signal trained strategy by arrow or sell arrow. Money management Trading hours, trading daily , trading direction. Standard
am looking for who help me convert tradingview indicator to mt5 car trading strategy and make sure you are an expert before u apply to this and also my budget for this is 30$ so the name of the indicator is Breaker Blocks with Signals (LuxAlgo)
I'm looking for who can help me with converting tradingview indicator to mt5 car trading strategy, And am in need of an expert for this, the indicator name : Breaker Blocks with Signals [LuxAlgo] ### 1. ** Entry Condition **: - ** For Long**: The trade is entered **after BB + ** is confirmed. - ** For Short **: The trade is entered **after BB -** is confirmed. ### 2nd **Stop Loss **: - ** For long Entries **: stop

Informazioni sul progetto

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