Close Open Trade on MACD Cross (SL/TP)

MQL4 Experts Scripts

Tâche terminée

Temps d'exécution 17 heures
Commentaires du client
5 Stars, very professional and immediate response time! Thanks again!
Commentaires de l'employé
A great client and a friendly person too and i hope we work together soon

Spécifications

Hey I'm not sure if this would be an EA or a script but here it goes:

Ideally it's a script I just double click after being in a trade I opened manually and that way I can forget about my trade and it will close it when the macd crosses against me for 1 period and that period closes across.

Currently:
I open positions manually in various time frames (15,30,1h) 

I close (TP/SL) my open trade(s) manually on the immediate open of the following period/candle/histogram bar of the MACD if the previous period/candle/histogram bar CLOSED across the 0 line from the trade direction.

For example:

I'm long
Histogram bar value is >0 
Histogram bar value becomes <0 (nothing happens yet)
Period ends (closes) with value <0
Immediately upon open of the following period my trade is closed.



- It must be set to the MACD settings I need

- The "Period" must be changeable. Whichever way is simplest but ideally if I'm taking 1 open trade on the 1h and have 1 trade open on the 15min, I want the 1h trade to follow the logic to follow 1h as the closing of the period. (Not sure if this is possible, how would you tie which timeframe I opened a trade in to what the period it should be etc.. Unless we hardcode the period in the code and I have 3 different versions of the script I can execute on 3 different charts loaded in their respective timeframes?)





Répondu

1
Développeur 1
Évaluation
(349)
Projets
463
51%
Arbitrage
41
24% / 49%
En retard
149
32%
Gratuit
2
Développeur 2
Évaluation
(430)
Projets
606
55%
Arbitrage
48
23% / 56%
En retard
176
29%
Gratuit
Commandes similaires
Company Overview We are building a next-generation trading automation platform under the XenithAI brand and are seeking an experienced MQL5 Developer to finalise a custom multi-timeframe indicator. This indicator is a key component in our EA strategy system and integrates VWAP, Fibonacci levels, and Swing High/Low logic to generate entry signals using a red/green traffic light visualisation. Project Overview You
Project Scope We are seeking an experienced MQL5 developer to design and implement a custom comments dashboard for MetaTrader 5 that addresses the limitations of the existing canvas-based approach. 🔧 Current Pain Points Current CComment canvas-based comment panels allow chart price action, lines, and indicators to leak through. No grouping or interactive collapsing/expanding of sections. UI is outdated – lacks
Need a fib ea 30 - 90 USD
Hello i need urgent a fib ea to be done for test purpose need consistent coder : coder with : high arbitrage against them + low review+ high overdue will be skip. coder with no review will have to be cheaper and tested. budget close to 90usd logic: using fib for the main entry for now might add more later to continue idea
is a BUY and sell Indicator based on bottoms, tops breakouts, and support and resistance and thers a few other things that i would like to add to the EA
Hello developers, I am looking for a developer who can create or provide an effective trading robot for MetaTrader 5 (MT5). The robot must be reliable and functional, and it can be either a ready-made project or developed from scratch. If interested, please contact me with price and delivery time. Thank you
I want the ea to be made on rsi and ema crossover, rsi below 20 buy and ema9,21 bullish crossover vice versa and for sell rsi above 80 and ema 9 and ema 21 bearish crossover
High lots volume EA 30 - 600 USD
Hello guys, I need an EA on mql5 working only on eurusd and/or only with majors. Broker on which this EA will work applies a 4pips spread on eurusd. This should run on a small account (1000usd) and the only goal this EA must achieve is to reach a volume of at least 50/60 lots in one month (the higher the better). No need to preserve the capital/equity, the account could also go to zero as the worst scenario, but the
📋 V75 SMA Crossover EA — Summary of Rules 1. Chart Timeframe for Trading Trades are taken on the M15 timeframe. 2. Indicators Used Simple Moving Averages (SMAs): SMA 5 (fast) SMA 15 (medium) SMA 50 (slow) SMA 150 (long-term trend) 3. Entry Conditions Buy Signal: SMA 5 crosses above SMA 15, AND Current price is above both SMA 50 and SMA 150. Sell Signal: SMA 5 crosses below SMA 15, AND Current price is below both SMA
Back End Developer Required with Prop firm experience . This is For an ongoing project . ATR Threshold Breakout . Certification . The expert is designed to gain 1-2 % of the equity every single day . ( for prop firms ) . Session Filter , Economic Calendar Filter . The Panel needs Minor Adjustments to show the parameters correctly ( no extra parameters required ) . Live Chart Adjustments accordingly . Developer needs
We're seeking a highly skilled QuantConnect developer (Python) to build a sophisticated intraday trading algorithm for use in prop firm environments (e.g., MyFundedFX, FXIFY). The strategy involves multi-layered technical logic and requires integration of strict risk rules to meet live challenge requirements

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD