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!
Pedidos semelhantes
I need someone to create a futures trading bot based on the ichimoku cloud system on the 1min timeframe with strong risk management. I want to use this for prop firm trading, more details will be given to you, I need someone that can create the bot and optimize as well. Need this on ninjatrader platform
Description I am looking for an experienced MQL5 developer to investigate and fix a suspected memory or resource usage issue in my MT5 Expert Advisor. The EA itself works correctly from a strategy and trading logic perspective . The trading model must remain exactly as it currently operates. I am not looking for any changes or optimisation to the strategy . The goal of this job is purely to identify and fix a
I’m a versatile freelancer who can handle a wide range of tasks. Whether it’s research, writing, data entry, virtual assistance, or problem-solving, I’m ready to help and committed to delivering reliable results
I need an automated trading robot for crypto trading. Strategy: - Use EMA 20 and EMA 50. - Buy when EMA 20 crosses above EMA 50. - Sell when EMA 20 crosses below EMA 50. Risk management: - Stop Loss: 2% - Take Profit: 4% Timeframe: 15 minutes. The robot should: - Open trades automatically. - Close trades automatically. - Show signals on the chart. Platform: MetaTrader 5 Market: Crypto (BTCUSDT)
I need an Expert Advisor for MetaTrader 5 based on SMT and CISD strategy using NASDAQ and S&P500. Strategy logic: - The bot compares NASDAQ and S&P500. - Timeframe: 3 minutes. - First condition: One of the pairs must take liquidity from a previous high or low while the other pair does NOT take that liquidity (SMT divergence). - Second condition: The pair that took liquidity must close back below the high (or above
De breedste selectie betaalde en gratis robots, die een breed scala aan handelsstrategieën implementeren — selecteer degene die het beste bij uw handelsstijl past. Gedetailleerde productbeschrijvingen met screenshots en video's, maar ook recensies van andere kopers helpen u bij het maken van de juiste keuze. Profiteer van gratis tests om de producteigenschappen te evalueren voordat u het aanschaft. Uitgebreid prijzen
I want a trading robot with proper risk management and good trading strategies it must make money ,place stop loss below the entry and place a take profit no loss only wins mostly trade major
Busco un robot para trading de scalping en oro o forex, el robot debe ser rentable en esos mercados, podemos automatizar mi estrategia basada en medias móviles con estrategia de scalping o bien si él desarollador tiene uno que funcione así y sea rentable podemos ver la opción de un demo o cuenta de lectura para estar seguros de la rentabilidad en el robot
MT4 EA TO TAKE TRADES FROM (A) HYDRA TREND RIDER AND (B) IQ GOLD GANN LEVELS ON MQL5.COM The MT4 version of these two indicators can be found on the mql5.com website with the following links: Hydra Trend Rider: https://www.mql5.com/en/market/product/111010?source=Site +Profile+Seller IQ Gold Gann Levels: https://www.mql5.com/en/market/product/134335?source=Site +Profile+Seller (1) ENTRY (a) Hydra Trend Rider
I have a strategy for US100 where I want a bot to trade according to my strategy, contact me who have proven experience in making bots for MT4 or MT5