Simple Pinbar EA

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 3 giorni

Specifiche

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! 

File:

MQ4
PinBar.mq4
31.5 Kb

Con risposta

1
Sviluppatore 1
Valutazioni
(625)
Progetti
983
47%
Arbitraggio
32
38% / 34%
In ritardo
96
10%
Caricato
Pubblicati: 6 codici
2
Sviluppatore 2
Valutazioni
(29)
Progetti
49
22%
Arbitraggio
14
29% / 21%
In ritardo
13
27%
Gratuito
3
Sviluppatore 3
Valutazioni
(772)
Progetti
1039
44%
Arbitraggio
50
8% / 50%
In ritardo
116
11%
Gratuito
Ordini simili
I am looking for an experienced developer to build a trading automation solution that captures signals from my existing TradingView indicator and executes trades automatically on cTrader. The solution must be stable, low-latency, and suitable for live trading. Scope of Work Develop a bot that receives trading signals from TradingView alerts. Integrate the system with cTrader for automatic trade execution. Ensure full
Hi if you have an already made EA that have Buy shop and sell stop order , with TP and stop loss please send let me know ………………………. Hi if you have an already made EA that have Buy shop and sell stop order , with TP and stop loss please send let me know ………………………
Busco un desarrollador experto en MQL5 (MetaTrader 5) para construir un Expert Advisor (EA) completamente autónomo, robusto, escalable y con panel on-chart, incluyendo 3 módulos de estrategia parametrizables, compatibilidad con Strategy Tester, y logs detallados. El EA será de propiedad exclusiva del cliente y debe entregarse con código fuente (.mq5). Alcance obligatorio (sin recortes) Estrategia 1 — Cruce de Medias
I want to convert trading view pine script to mt5 expert advisor. Pine script is given below. Pine script is working very well in xauusd pair. I want same result in mt5 ea
Hey guys, I’ve been trading for 6 years now and I need to automate a strategy that is really simple and ove developed by myself. Can you help me on that? Here is my e-mail angelocherubini24@gmail.com
Hello Great Developer I am looking for a highly experienced MQL5 developer to build a production-grade Telegram to MT5 signal copier. Requirements: • <1 second execution latency (Telegram → MT5) • Intelligent signal parsing (layered entries, partial closes, BE, TP4 open trailing, modifications) • Multi-provider support (scalable to 100+) • Built-in advanced backtesting system • Configurable risk management settings •
What information would you need for Ninjatrader automated trading and approximately how long would it take ? Bill if anyone can give response here I will be glad to discuss
Khumza bot 30 - 40 USD
■Specification: Hello freelancers i need a bot.Bot requirements (MT5 EA -Extra Conservative).■Platform: MetaTrader 4/5 (PC and mobile compatible).■Markets:Forex Pairs(Gbpusd,Gbpjpy,Usdjpy),Us30,Gold,Bitcoin. ■Risk Profile(Very Conservative) ◇Risk 0.25% -0.5% per trade maximum.◇No martingale,no grid,no averaging down.◇One trade per symbol at a time. ◇Maximum 1-6 good trades per day.■STRATEGY LOGIC(All
Hello, Good programmer help in track of programmer in mql5 market sells product and give fake expert advisor see attached for name of programmer. NEEDS TO GIVE HIS CLIENT MONEY BACK OR PROVIDE THE REAL EXPERT ADVISOR Gold on the Go Experts Nguyen Hang Hai Ha Version: 1.1 Updated: 23 June 2025 Activations: 10 Expert Gold on the Go is the latest generation of automated trading robots programmed
Hello! I am looking for an experienced developer to build a robust, customizable Expert Advisor (MT4/MT5) or a standalone Python bot. The strategy is based on pure Price Action (Support & Resistance breakouts) on the XAUUSD (Gold) 30-Minute chart. It relies heavily on "human-like" chart analysis, such as looking left for targets, waiting for a price pullback (a "flip") before entering, and managing the trade based on

Informazioni sul progetto

Budget
15 USD
Scadenze
da 1 a 8 giorno(i)