Exit code; TP on x bars after entry bar, SL on x bars after entry bar

MQL4 Indicators Experts

Job finished

Execution time 8 days

Specification

Geo Exit Code

I am looking for Exit Code only that I can copy & paste into my EA builder MQ4 files. I can build lots of entry methods in EA builder platform, but the TP and SL is very limited. The new Exit Code must work in Strategy Tester mode MT4 for optimization. See attached simple EA build file as a sample to which I would want to paste the New Exit Code.

New Geo Exit Code:

EA to TP on x bars after entry bar. EA to SL on x bars after entry bar.

 

Variables: (display in this order)

TP Bars – x bars (0 is entry bar, 1 is first bar after entry, 2 is second bar after entry, etc).

TP method – high, low, close.

TP ­­adder – x pips (extra pips added to TP target chosen, 0 pips mean not used).

SL Bars – x bars (0 is entry bar, 1 is first bar after entry, 2 is second bar after entry, etc).

SL method – high, low, close.

TS ­– x pips (after reaching x pips, then breakeven is set, 0 pips mean not used).

 

Additional requirements

EA code should work on any account or MT4, no restrictions, MQ4 open source code.

EA code must be tested and fully functional and accurate.

EA must work with EA builder code in Strategy Tester mode for optimization.

If you see any improvements that you can recommend / implement that would be appreciated.

Thank you.


Files:

MQ4
Geo-CCI1.mq4
11.4 Kb

Responded

1
Developer 1
Rating
(65)
Projects
96
52%
Arbitration
3
33% / 67%
Overdue
24
25%
Free
2
Developer 2
Rating
(2)
Projects
4
0%
Arbitration
0
Overdue
0
Free
Similar orders
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I'm looking for an experienced developer to create an automated gold trading bot. The bot should be compatible with MetaTrader 4/5 and TradingView. Key Requirements: - Automated trading bot - Compatible with MetaTrader 4/5 and TradingView - Implement scalping and swing trading strategies Ideal Skills and Experience: - Proficiency in trading algorithms - Experience with gold trading - Familiarity with MetaTrader and
I need a robust optimization of my MT5 EA, mainly for XAUUSD (Gold). Please optimize the existing adjustable parameters such as entry/exit settings, SL/TP, trailing/break-even settings, and any other strategy parameters that are appropriate. I want the optimization focused on stable profitability, low/moderate drawdown, and robustness rather than simply the highest possible profit. Please use out-of-sample testing
NinjaTrader 8 / NinjaScript Phase 1 build: convert an existing Auction Market Theory (AMT) strategy into objective, alert-only decision-support logic. Not a bot, no auto-execution — trades stay manual. Covers NQ/MNQ, ES, CL, MGC using 30-min TPO/Volume Profile context with 5-min confirmation: one 5-min close outside VAH/VAL = acceptance, close back inside = rejection. Dashboard shows bias, auction state, location
Hello, I need a custom NON-REPAINT MT5 indicator that gives sell/buy arrow signals 1–2 candlesticks before a spike on Crash and boom indices respectively occurs. Requirements: Works perfectly on MT5 Shows arrows before the spike (1–2 candles earlier). Non-repaint – once the arrow appears, it must stay. Should be accurate, not quantity — only quality signals. Must work on both demo and live accounts. I want the
Hello, I saw an indicator on TradingView and would like to know if you will be able to convert it for use on Thinkorswim platform? Thanks. if anyone can help me with it kindly do well to bid it urgent thanks looking forward too see you
calcVolume( void ) { //--- MqlRates rates[]; if ( CopyRates ( _Symbol , PERIOD_CURRENT , startTime, endTime, rates) > 0 ) { double rangeHigh = rates[ 0 ].high, rangeLow = rates[ 0 ].low; int count = MathAbs ( iBarShift ( _Symbol , PERIOD_CURRENT , startTime) - iBarShift ( _Symbol , PERIOD_CURRENT , endTime)) + 1 ; //---VERTICAL PRICE RANGE for ( int b = 0

Project information

Budget
30 - 78 USD