2 TF Heiken Ashi EA, with trailing stop

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 2 días

Tarea técnica

I'd like an MT4 EA created using a 2 time frame heiken ashi smoothed chart as baseline.  In the simplest terms, I want to take one trade at the close of a bar, that is contrary/inverse to the two-time-frame heiken ashi candles. So if the trend of TF1 and TF2 HA candles are both up, and the actual close price < open price then it would place a buy order, and visa versa for down TF1/TF2 HA bars.

I'd like it to open multiple total orders, in the same trade direction, but only one trade per new bar close.  

As far as SL/TP, I'd really like to have a trailing stop activated, based on the price movement during that bar.  I'm trying to catch a price surge.  So if the lastprice(bid/ask) is x# of pips from the bar open, a trailing stop would be activated.  The standard trailing stop movement of MT4 is fine.  I'm with a US broker, so I think putting the trailing stop on one open order, puts it on all, which is what I want.  So for a long position, it'd have this general logic.  "If positionprofit>0 and lastpbid>open+.0015, then activate trailingstop at bid - .0002".     The input variables for that would be like::::     Bar_Move : .00150, and TS_Start: .00020 

I did have someone do a job for me on here and while using an EA builder is fine, please just do the code to accomplish these things.  The job that person did had over 10,000 lines of code, most of it not needed.  And I do like to play with the code, so just try and keep it simple and clean to get the job done. thanks.  

I think that is pretty straightforward, but please message me if anything unclear.    I am on a 5 digit broker if that matters, and assume both mql and ex4 file will be included.

Here is a summary:

  1. EA for MT4, based on 2 time frame SMOOTHED Heiken Ashi, TF1(M15),TF2(H4) is ok to start
  2. TF1 & TF2 agree, to set trend, Place 1 order when the bar close is inverse of trend. .
  3. Multiple open entries in the same direction
  4. SL/TP - I don't normally do automatic SL/TP, so this is mostly for testing/optimizing)
  5. Trailing Stop Trigger - If the price moves x# of pips during the current bar, and the total position profit is positive, activate a trailing SL for all open orders on that chart.

Inputs:  This is my best guess of inputs, use whatever names you want and just add any others you think necessary. 

  • Ma Method1: 2
  • Ma Period1: 3
  • MA Method2: 2
  • MA Period2: 6
  • TF1: M15
  • TF2: H1
  • Lot: .01 
  • Maximum_Spread: 3    (Want to filter out wide spread events, so if the spread is move then this, do not take the trade)
  • SL: 0                      (don't use much, but good to have for testing)
  • TP: 0              (same)
  • Trailing_Stop_Move: 10 (if the last bid/ask is more than this number of pips away from the current bar open price, and the open account profit>0, activate a trailing stop for all open orders on the chart. Maybe a 0 will make the TS not active)
  • Trailing_Stop: 3     (this will be the starting point for the trailing stop, Pips away from the current price)  The trailing stop can move at the minimum increments after activation.


Han respondido

1
Desarrollador 1
Evaluación
(77)
Proyectos
243
74%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 1 artículo
2
Desarrollador 2
Evaluación
(390)
Proyectos
416
30%
Arbitraje
74
19% / 72%
Caducado
52
13%
Trabaja
3
Desarrollador 3
Evaluación
(7)
Proyectos
14
21%
Arbitraje
1
0% / 100%
Caducado
3
21%
Libre
4
Desarrollador 4
Evaluación
(1)
Proyectos
2
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(310)
Proyectos
556
35%
Arbitraje
79
32% / 43%
Caducado
202
36%
Trabaja
6
Desarrollador 6
Evaluación
(11)
Proyectos
18
28%
Arbitraje
4
50% / 50%
Caducado
1
6%
Libre
7
Desarrollador 7
Evaluación
(36)
Proyectos
45
2%
Arbitraje
6
33% / 17%
Caducado
1
2%
Libre
Solicitudes similares
مرحبا احتاج ريبورت يعمل على mt5. يعمل على ذهب على تايم فريم ٥ دقائق. يعمل ٢٤ ساعة طريقة العمل كل ٣٠ دقيقة يتم فتح دورة مثال لو كانت ساعة ١.٢٥ ننتضر شمعة التالي المقصود بمعنى الشمعة ٥ دقايق سوف تغلق ساعة ١.٣٠ هذا الشمعة المقصودة يتم تطبيق كل نصف ساعة الشرح الدقيق عند اغلاق شمعة ٥ دقايق فورآ يتم تحديد هاي شمعة و لو الشمعة ننتضر في حال اخترق هاي شمعة المحددة بفارق نصف دولار أعلى شمعة المحددة
USD I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. for an experienced MQL5 developer to build a fully automated trading bot (Expert Advisor) for MetaTrader 5 . The bot will focus on trend-following scalping and must be designed to trade XAUUSD, EURUSDm, ETHUSDm,BTCUSDm and others on the M1 timeframe . The objective is to create a
I have a few different expert advisors. I would like a copier that will copy the trades from the robots on mt4/mt5 to trade locker. Make it so the copier only works with my expert advisors, so it can only be used by my members. Some of my systems are grid trading, for your reference. I want it to be easy to use, with clean functionality. Nothing difficult
Required Filters are working as per specification and requirement . Stop Loss Trailing needs correct execution for live chart . Need a little advice on trailing stop loss correction . Live chart only
I’m looking to purchase a profitable automated trading system for NinjaTrader that can trade NQ/MNQ or ES/MES futures . My goal is to find a strategy with strong profit potential , even if it comes with a higher drawdown. Please send any algos you have that trade NQ/MNQ or ES/MES with at least a 1-year backtest , preferably a system that is not based on ultra-fast scalping . Scope of work Provide a NinjaTrader
Mt4 indicator 50+ USD
I was on co pilot and they said they can build this harmonic prz indicator for me but i was not able to build it. Can anyone help, I have the indicators in ex4 file but not the mq4 files. I want to add these indicators and you can turn it into a complete full indicator like the attached photo I sent and also if you can make it into an automated EA, that would be awesome
We aim to belong to the Top 5 of Mql5 marketplace sellers. We are already in the Top 20 only after 2 years of presence. We are complying with the best standards in ethics and transparency. We already have a good reputation, numerous performing signals with no tricks, a building up community a presence on all marketplaces and social media Join the team and let's bring value to this marketplace
I want to fix my BOT that stopped working but I do not have the code file. I want to fix my BOT that stopped working but I do not have the code file. I want to fix my BOT that stopped working but I do not have the code file. I want to fix my BOT that stopped working but I do not have the code file. Verify EA Status The green "Automated trading enabled" confirms MT5 settings are correct. "Squared" means the EA hit a
Am looking for an well experienced developer or team to build a basic forex trading automation system connected to MetaTrader (MT4/MT5). The system should allow users to connect their trading accounts and execute trades automatically based on predefined signals or a master trading account. Experience with MetaTrader APIs, trade copying systems, and forex automation is preferred. NOTE: Kindly apply if you have done
EA 30+ USD
Subject Hello. I want an MT5 Expert Advisor that can grow a small account by catching strong trends and holding trades for a long time. Requirements: The EA should trade mainly XAUUSD and major pairs like EURUSD or GBPUSD. It should use a trend-following strategy and be able to hold trades for hours or even several days when the trend is strong. The entry should be a sniper entry using indicators like moving

Información sobre el proyecto

Presupuesto
60+ USD
Plazo límite de ejecución
de 1 a 3 día(s)