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 want it to trade for me 30 - 10000 USD
I want a robot that will trade for me and make money and also withdraw the money to my account and also do all the purchases and the payments. A unique robot that doesn't need to be updated a robot that doesn't need to be told what to do , but it does its Job good a robot that is advantageous
I need a m1 trade scalping EA. Enter an order as soon as the price exits the trendline SL: 5 pips TP: 7 pips . I will give you the specific conditions after we discuss
So i would manually identify which pair(s) i believe will have a good solid net buy or sell day upon the close of previous days daily Candle which is at 10pm British Time. And then rather than sitting in front of the screen all day waiting for my entry trigger i would attach the EA to that or those pairs only and wait for them to enter the trade(s) if certain criteria are met. These criteria are displayed in the
Chibuike 50+ USD
The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is
Hello, I want an experience programmer who knows how to make a simple UI/UX for this EA for an MT5 platform. The logic of this is EA is simple, with hedging system and continuing trend ordering system or cascade ordering. I also included in this EA the market reversal points, when the active orders reached this point and the market reverses the current order closes and will execute a new order (further discuss in in
can you build me a bot base on this strategy please The term "MartiScalper robot" likely refers to a type of automated trading system that combines two different trading strategies: Martingale and Scalping. Here's a breakdown of these strategies: 1. **Martingale Strategy**: This is a betting strategy that involves doubling the trade size after a loss, with the idea that an eventual win will recover all previous
The TurtleDashboard BOT (Expert Advisor) has the goal to provide to the trader a dashboard that summarises, for each symbol (currency pair for the Forex market), a set of technical indicators for a set of timeframes (the set of timeframes is always fixed - hardcoded). The dashboard is actually a simple Google Sheet Document, with one sheet and 38 columns. Once the BOT is started and running, every X minutes it
I am using pine script plot function there is offset value there , I need a pine script and mql code when. The close cross under or cross over the offset value line it generate an alert , it's not possible through plot function however could be done through other means do you know how to do it
I am looking for superb amazing fast MT4 EA coding service from a reliable skilled programmer, If you are the type that used to attend to messages after it client has been waiting so long or paying attention in the beginning then disappear for a while, not ready to provide timely updates and pay attention to details, don't apply as not to waste both our time, I begged you with the power that keep you alive, this is
hi guys, I have a script, that I have been struggling to work. most of the work is done, just final touch of an expert is needed. The script Is using Fibonacci and Pivot standard in its base. look forward to hear from an expert! Best regards Sina

Project information

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