Simple Pinbar EA

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 3 días

Tarea técnica

Good afternoon. I would like to have a pinbar ea, which trades automatically when it detects that the previous bar was a pinbar. I am also going to attach an indicator, which could help you get ideas in coding this EA. 

 This is a high level view:

 

1) Basic function is it looks at the current bar right when it finishes, and makes a decision on whether it is a pinbar or not. For example, a simple rule could be 72% of whole candle is wick, and rest 28% is actual body. So anything >= 72% wick is classified as pinbar.

2) If it deems at the close of the current bar that it is a pinbar, it immediately opens an order in the direction of that pinbar. The important part here is that it immediately acts and takes an order, if the previous bar was indeed a pinbar.

3) It can do that for every open chart in your MT4.

4)  Basic requirement is that it can do that for range bars, tick bars etc. For example, for a 50 pip range bar chart, it detects again when the bar will close and classifies it. 

5) Based on #4, it is very important to see whether there is a mechanism in MT4 to detect if the current bar has changed. I don't know if MT4 gives this possibility. But this is a requirement because for example on a 4 hour chart, sure you know the bar will change after 4 hours. But in a 50 (or 100, or 200) pip bar, the bar will change whenever the whole range of pips has been covered.


It would be easier if this EA just recognizes when there has been a bar change, and immediately makes a decision on the previous bar based on point 1.

A simple algorithm approach I am thinking of is this:

1) Detect when the current bar has changed.

 2) Immediately go to previous bar, subtract low from high to get the whole candle length.

3)Subtract close from open to see whether candle was bullish or bearish. If bullish, we are looking to buy. If bearish, we want to sell.

4)For example in the case that the close was higher than the open (bullish), subtract the open from the low so that we know how big the wick is.

5) Compare the length of the wick to the length of the whole body (wick length divided by whole candle length perhaps). If the wick is 72% or more of the body, we immediately take a bullish trade. 

 Similar for bearish trade. I ncase of time charts, we might also want to take a look if there is a wick above the close for a bullish trade, or below the close for a bearish trade.

 

It would be great to do some statistical analysis of the famous pinbar through this EA. If you take a look at it, I will be very thankful! 

Archivos adjuntos:

MQ4
PinBar.mq4
31.5 Kb

Han respondido

1
Desarrollador 1
Evaluación
(586)
Proyectos
918
46%
Arbitraje
31
39% / 29%
Caducado
93
10%
Libre
2
Desarrollador 2
Evaluación
(28)
Proyectos
47
23%
Arbitraje
13
31% / 15%
Caducado
12
26%
Libre
3
Desarrollador 3
Evaluación
(769)
Proyectos
1033
44%
Arbitraje
50
8% / 50%
Caducado
117
11%
Libre
Solicitudes similares
Develop a simple trading robot from rainbow oscillator Additional features Include timeframe specification in rainbow oscillator trailing features moving average filter TP (true/false) SL (true/false) Fixed lot Risk percentage Percentage profit lock
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
I need a dashboard that shows my various accounts that shows balance, equity, number of trades open, drawdown and some more information. I want to use it to monitor my accounts in one screen or chart. If there is anyone who can do it please show me the screenshot of your sample
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A
Estou a procura de um programador que faça um robo que automatize as análises feitas por ele nas ondas de Elliot e que faça entradas precisas com proteções das mesmas e com proteções também ajustáveis para não entrar em noticias de 2 ou 3 estrelas, e que seja para o mercado B3 Mini Indice ou Mini Dolar
Sosso 30+ USD
I would like to order an automated robot to the job for me as I have no clue on whatsoever the trading is about. The bot should be able to do it's job, everything for me and it providing the best services for one to use
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
Strategy: 1. Identify strong supply and demand levels. Draw them in the chart in green and red. In Tradingview: Market Structure Break & Order Block by EmreKb von EmreKb --> Strong demand and supply area refer to picture below (Buy and Sell Zones). There must be a strong demand / supply zone on a higher time frame in order for the set up to be valid. The time frame can be selected in the settings. E.g. "Higher Time
Hi there, I currently have a scalping strategy based of 3 thrid party indicators that I would like automated. This would help me with running the strategy through the strategy tester. Two of the indicators dont have iCustom functionality to pull the data in, so another way would have to be devised. The strategy incorpates trading activity, sentiment in the for of the ratio of traders in profit, and a third techincal

Información sobre el proyecto

Presupuesto
15 USD
IVA (21%): 3.15 - 3.15 USD
Total: 18.15 - 18.15 USD
Para el ejecutor
13.5 - 13.5 USD
Plazo límite de ejecución
de 1 a 8 día(s)