2 TF Heiken Ashi EA, with trailing stop

MQL4 Experts

Job finished

Execution time 2 days

Specification

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.


Responded

1
Developer 1
Rating
(77)
Projects
243
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
2
Developer 2
Rating
(390)
Projects
416
30%
Arbitration
74
19% / 72%
Overdue
52
13%
Working
3
Developer 3
Rating
(7)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
3
21%
Free
4
Developer 4
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
5
Developer 5
Rating
(311)
Projects
557
35%
Arbitration
79
32% / 43%
Overdue
202
36%
Free
6
Developer 6
Rating
(11)
Projects
18
28%
Arbitration
4
50% / 50%
Overdue
1
6%
Free
7
Developer 7
Rating
(36)
Projects
45
2%
Arbitration
6
33% / 17%
Overdue
1
2%
Free
Similar orders
حلل لي اصل مالي ) اكتب هنا مثلا XAU EUR USD USD اريد تحليلا تعليما و ليس توصية مالية ۱- نوع التحليل المطلوب : ( فني / اساسي / سلوك سعري ) ٢ - المدي الزمني : ( قصير / متوسط / طويل ) M15 / H1 / H4 / ) اذكر الفريمات المطلوبه + (D1 ما اريد استخراجه من التحليل : الاتجاه العام اقوي مستويات دعم و مقاومة رقمية سيناريو صعود و سيناريو هبوط مع شروط كل سيناريو ( IF / THEN ) اين يصبح السيناريو لاغيا مناطق دخول و خروج تعليمية (
Project Title: Looking for an MQL5 developer for a custom MT5 Expert Advisor Hello, I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5. The strategy logic will be discussed privately after I find a developer interested in the project. At this stage, I only want to know: • If you are available to develop a custom EA • Your experience with MT5 / MQL5 • Your estimated
I need modifications to an existing MT5 Expert Advisor. Modification 1 EA must be able to run on indices as well as forex , specifically: SP500 US100 US30 No other changes to the current logic Modification 2 Other alterations/notes: Opening breakout range option for 15min or 30 min from session start. 5 min fair value gap (FVG) break outside of the range (instead of 1 min). At least one of the candles must be within
Hi I need a MetaTrader 5 Expert Advisor for XAUUSD that creates a laddered buy setup and manages take-profit automatically depending on how many entries are triggered. The EA will act as a trade execution and management tool , not a strategy robot. Core Function The EA should include a BUY/SELL SETUP button that creates a ladder of orders. E.g. When pressed: Open Entry 1 – Market Buy Place Entry 2 – Buy Limit below
Technical Specification: Institutional Order Flow Indicator (M1) ​1. Objective ​Development of a professional, non-repaint indicator for the ATAS platform (C# API). The focus is maximum mathematical precision for M1 entries in Binary Options and Major Forex Pairs). ​2. Core Logic (The Signal Engine) ​The signal (Buy/Sell Arrow) must only appear when all the following cluster conditions are met in the same candle
I am looking for an experienced quantitative developer to analyze and optimize an MT5 Expert Advisor that I have already developed. The EA is relatively complex and includes: Multiple strategies (Trend Pullback, Breakout, Mean Reversion, EMA Reclaim) Scoring system combining technical score and probabilistic filter Regime detection (ADX based) Volatility filters (ATR regime) Correlation and cluster exposure control
Hi i want to make a way were the signals from DSJ EXCHANGE will be sent to my other platform like these https://vettedpropfirms.com/best-metatrader-trade-copiers/ We will use one of these platform to but i hope this make sense
Until zone detection is coded , you will be from that point . Trailing Stop Optimization for live chart . Apply with Specific Currency Support . Clean Code . Zone Upper Limit and Lower Limit . Apply with careful understanding of the project requirement
Neville 30 - 200 USD
I need a trading robot for MT5 that trades XAUUSD. Conditions: - Buy when the 50 Moving Average crosses above the 200 Moving Average. - Sell when the 50 Moving Average crosses below the 200 Moving Average. Settings: - Lot size: 0.01 - Stop Loss: 50 pips - Take Profit: 100 pips - Only one trade at a time. The robot should work automatically and close trades when TP or SL is reached
I'm looking to buy a profitable NinjaTrader automated trading system that can trade NQ/MNQ or ES/MES. My goal is to find a system with a strong profit potential, even if it has a high drawdown. Scope of work - Provide NinjaTrader automated trading system for NQ/MNQ or ES/MES. - Include backtest results for at least 1 year. - System must show high profitability. Additional information I am primarily focused on finding

Project information

Budget
60+ USD
Deadline
from 1 to 3 day(s)