Modification to the Grid Trend Multiplier (GTM) EA to work with the RSI indicator

MQL5 Indicadores Asesores Expertos

Tarea técnica

I'm currently an owner of a GTM EA/TOOL (MT5) and I have been using it to trade Boom and Crash Indices. The EA has worked well for one directional trading but when an index spikes up (Boom index) or down (crash index), it results in losses because following stops are not being honoured when prices crash or boom.  I have identified an indicator (RSI) that will help minimize getting into such losses and take advantage of the spikes. 

 The following is how i have been trading boom and crash indices:

1.    Boom/Crash Index

·         I activate one directional trading in a sell, using the minimum lot size of 0.2 and a grid size of 100 points (this equates to a single 1 minute candle price movement). The GTM (MT5) cashes in at every candle closure and opens a new trade for each candle.

 

·         However, every time the index spikes up, the open trade results in a negative trade and if it continues to spike up, a new negative trade will be created at every spike. I tried limiting the number of open deals at a time but eventually those open negative deals will end up in huge losses if spikes continue. For a crash index, the exact opposite occurs.

 

·         The RSI indicator can help determine when a price will boom (spikes up) or crash (spikes down). Every time the RSI reaches an overbought region for a Crash index, the price spikes down and when it reaches an oversold region for a boom index, the price spikes up.

 

I therefore would like you to assist me by incorporating the RSI indicator into the GTM (MT5) as follows:

 

1.    Crash index

·         In the sell leg of the GTM, incorporate the RSI indicator such that i can input a level and period as a condition to open sell trades at every candle close/open when the RSI reaches an overbought region at a specified level and period.

·         The GTM should be allowed to open buy trades automatically without the influence of RSI conditions but should stop opening buy trades and close any open buy trade once the RSI reaches the overbought region, but should continue buying once all the sell trades have been closed or after every spike.

·         The buy leg of the GTM must have one RSI level that can be turned off by entering a zero value.

 

2.    Boom index

·         In the Buy leg of the GTM (MT5), incorporate the RSI indicator such that I can input a level and period as a condition to open buy trades at every candle close/open when the RSI reaches an oversold region at a specified level and period.

·         The GTM should be allowed to open sell trades automatically without the influence of RSI conditions but should stop opening sell trades and close any open buy trade once the RSI reaches the oversold region, but should continue selling once all the buy trades have been closed or after every spike.

 

·         The sell leg of the GTM must have one RSI level that can be turned off by entering a zero value. The RSI indicator must not use two levels (Overbought and oversold) at the same time only one level should be active at a time.

 

3.    Illustration of GTM EA trading the 1000 Crash Index

 

 

4.    Current GTM coding guide as per the E user guide (attached)

 

//+------------------------------------------------------------------+

//|                                                       GTM EA.mq5 |

//|                                                       LN Thomas

//|                                             https://www.mql5.com |

//+------------------------------------------------------------------+

#property copyright "LN Thomas"

#property link      "https://www.mql5.com"

#property version   "1.00"

 

//---Trading vs Planning Mode

input Startup & Operational_mode[dropdown]= "Grid trading & Planning mode/Planning mode only (No new trade entries)";

 

//---Combined_profit_and_risk_settings

//---Closure_at_profit_level

 

//--- input parameters

input int      Target_profit_amount[0:Off]=500;

input float    Target_profit_pips[0:Off]=0.0;

input int      Target_profit_percent_of_balance_at_start[0:Off]=0;

 

//---Closure_at_loss_level

input int      Max_loss_amount[0:Off]=0;

input float    Max_loss_percent_of_balance_at_start[0:Off]=0.0;

input int      Max_loss_pips=0;

 

//---Closure_at_price_level

input float    Close_grid_on_or_above_price=0.0;

input float    Close_grid_on_or_below_price=0.0;

 

//---Balance_of_Buy_and_Sell_grid_trades

input int      Max_Gap_of_buy_and_sell_open_trades=0;

input int      Max_Gap_resolution[dropdown]="Trade with trend Only/Prune highest loss trade";

 

//---Position_sizing

input float    Equity_amount_reserved_for_this_EA[>0]=0.0;

input float    Max_drawdown_allowed_percent[>0]=30.0;

input int      Position_sizing_method[dropdown]="Manual lot size/Pecent of EA Euity/Percent of EA Balance";

input float    Position_risk_percent[>0]=0.0;

 

//---Buy_grid_settings

input int      Buy_grid_trading_allowed[select]="Enabled/Disabbled";

input float    Buy_initial_entry_price[0:Off]=0.0;

input float    Buy_manual_lotsize=0.0;

input int      Buy_gap_size[>0]=0;

input int      Buy_stoploss_pips[0:Off]=0;

input int      Buy_takeprofit[0:Off]=0;

 

//---Buy_counter_trend_scaling

input int      Buy_counter_trend_scaling_after_grid[0:Off]=0;

input int      Buy_counter_trend_scaling_percent[0:Off]=0;

input int      Buy_counter_trend_lot_scaling_down[0:Off]=0;

 

//---Buy_trading_boundary

input float    No_new_buy_on_or_above_price[0:Off]=0.0;

input float    No_new_buy_on_or_below_price[0:Off]=0.0;

 

//---Sell_grid_settings

input int      Automatic_vs_Manual_sell_settings[select]="Automatic sell settings:copied from Buy(ignore sell fields)/Manual sell settings:Fill in sell fields below";

input int      Sell_grid_trading_allowed[select]="Enabled/Disabled";

input float    Sell_initial_entry_price[0:Off]=0.0;

input float    Sell_manual_lotsize=0.0;

input int      Sell_Gap_size[>0]=0;

input int      Sell_stoploss_pips[0:Off]=0;

input int      Sell_takeprofit[0:Off]=0;

 

//---Sell_counter_trend_scalling

input int      Sell_counter_trend_scaling_after_grid[0:Off]=0;

input int      Sell_counter_trend_Gap_scaling_percent[0:Off]=0;

input int      Sell_counter_trend_lot_scaling_down[0:Off]=0;

 

//--Sell_trading_boundary

input float    No_new_sell_on_or_above_price[0:Off]=0.0;

input float    No_new_sell_on_or_below_price[0:Off]=0.0;

 

//--Operation_Settings

input int      Reentry_after_grid_closure="Reentry allowed/Disallowed";

input int      Max_open_ticket_count[0:Off]=0;

input float    Max_spread_to_allow_trade_pips=5.0;

input float    Grid_level_sensitivity_to_trade_pips=5.0;

input int      Lot_adjustment_for_FIFO="Normal position sizing/Apply FIFO Adjustments";

 

//---Visual_grid_feedback_chart

input int      Grid_level_shown_above_or_below_activity=3;

input int      Buy_grid_onchart_colorscheme=7;

input int      Sell_grid_onchart_colorscheme=5;

input color    Grid_close_above_level_color=clrOrange;

input color    Grid_close_below_level_color=clrOrange;

input color    No_new_buy_above_level_color=clrDarkViolet;

input color    No_new_buy_below_level_color=clrDarkViolet;

input color    No_new_sell_above_level_color=clrDarkViolet;

input color    No_new_sell_below_level_color=clrDarkViolet;

input color    Grid_closeout_summary_text_color=clrGray;

 

//---Planning_mode_visual_feedback

input color    Future_target_price_color=clrDarkRed;

input color    Initial_entry_price_color=clrCornflowerBlue;

input color    Realized_existing_trade_color=clrMediumAquamarine;

input color    Open_existing_trade_color=clrDarkOrchid;

input color    Realized_future_trade_color=clrYellowGreen;

input color    open_future_trade_color=clrViolet;

input int      Tick_scaling_for_CFD_markets[select]="Auto scale for Index markets/Never Scale/Always Scale";

input int      Magic_number=20140328;


Archivos adjuntos:

MQ5
GTM_EA.mq5
8.1 Kb

Han respondido

1
Desarrollador 1
Evaluación
(2)
Proyectos
3
0%
Arbitraje
1
0% / 100%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(58)
Proyectos
76
33%
Arbitraje
9
78% / 11%
Caducado
7
9%
Libre
3
Desarrollador 3
Evaluación
(356)
Proyectos
632
26%
Arbitraje
89
73% / 13%
Caducado
12
2%
Libre
4
Desarrollador 4
Evaluación
(119)
Proyectos
127
41%
Arbitraje
3
33% / 67%
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(172)
Proyectos
195
11%
Arbitraje
37
38% / 35%
Caducado
5
3%
Trabajando
6
Desarrollador 6
Evaluación
(42)
Proyectos
88
14%
Arbitraje
31
29% / 55%
Caducado
36
41%
Trabaja
7
Desarrollador 7
Evaluación
(67)
Proyectos
144
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Libre
Solicitudes similares
Hello, am in need of a developer that can help in developing a trading bot that can effectively navigate the foreign exchange (Forex) market or other financial markets to generate passive income. My objective is to create a sophisticated algorithmic trading system that can consistently produce profitable trades with minimal manual intervention. I am seeking a reliable and efficient solution that can be tailored to my
am looking for who help me convert tradingview indicator to mt5 car trading strategy and make sure you are an expert before u apply to this and also my budget for this is 30$ so the name of the indicator is Breaker Blocks with Signals (LuxAlgo) ### 1. ** Entry Condition **: - ** For Long**: The trade is entered **after BB + ** is confirmed. - ** For Short *: The trade is entered **after BB -* is confirmed. ### 2nd
I have a custom MT4 indicator that I need converted to MT5. I'll share the source code with the applicants. Please only apply if you have vast experience in converting complex indicators successfully to MT5, and making sure that the MT5 version functions exactly the same as the MT4 version
I need an expert to help me convert chopzone traingview pinescript to mt4, I need an expert to get it done for me on between 1 to 2 days i hope this will be done by then, i will attach the file and my budget is $30 as of minimum here
Looking for someone to edit/optimize and existing NN (neural network) in my EA so it is more compatible/profitable with the multiple strategies. The expert advisor is a portfolio expert advisor consisting of 33 separate advisors/strategies compiled into one. A NN has been added to the EA but it does not compliment or help the EA's performance. I've attached the original EA (without NN) as well as the EA with the NN
Need to modify the ea to take trades based on an indicator. indicator and ea source code available. Variable inputs of indicator to be added. Buy Amount for Profit (+ve $value ) Buy Amount for Loss (-ve $value ) Sell Amount for Profit (+ve $value ) Sell Amount for Loss (-ve $value )
Procuro programador que consiga modificar essas estratégias, com a mesma capacidade de alteração das suas funcionalidades. Reitero, não consegui contato com o programador da fonte, nem mesmo mandando diversas mensagens no telegram! br.tradingview.com/script/PfpFNXyI-Braid-Filter/ br.tradingview.com/script/kv8N05R7-AlphaTrend-Screener/ Ambos os indicadores precisam agir em conjunto, tanto para as funcionalidades em
--- ### Basic Rules for You 1. **Time Management**: - All tasks should be completed within the agreed-upon timeframe. Clear deadlines will be set, and it's essential to adhere to them to ensure smooth progress. 2. **Fixed Budget**: - The budget for this project is fixed. Please ensure that all work done remains within this budget. Any additional costs must be discussed and agreed upon before proceeding. 3
CORREÇÃO NOTIFICAÇÕES Ø O indicador muda a cor dos candles e da MA200 quando ocorre as entradas e é somente nesse momento que ele deve enviar notificação de entrada porem está enviando em outros momentos que não atende as condições conforme imagem abaixo. Ø Sempre que abro o MT5, mudo o time frame ou a plataforma perde conexão o indicador me envia notificações de entradas passadas, o indicador deve enviar
Hi I have an indicator that i have tried to create an EA with, this is a simple EA that should have bought on green indicator value if previous candle indicator value was yellow. Then it should have sold when indicator value was red with previous value being yellow. Now, i would not say that i am a coder, by any stretch of the imagination, but something this simple should have been easy, instead, the EA would open

Información sobre el proyecto

Presupuesto
30 - 200 USD
Para el ejecutor
27 - 180 USD
Plazo límite de ejecución
a 10 día(s)