Estrategia

MQL5 Indicatori

Specifiche

//+------------------------------------------------------------------+
//|                                       Estrategia_Pedro_Final.mq5 |
//|                                  Setas + Alertas + Filtro Tendência|
//+------------------------------------------------------------------+
#property copyright "Pedro_Trader"
#property version   "4.00"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_plots   2

// Configuração Visual das Setas
#property indicator_label1  "Seta_Compra"
#property indicator_type1   DRAW_ARROW
#property indicator_color1  clrLime
#property indicator_width1  3

#property indicator_label2  "Seta_Venda"
#property indicator_type2   DRAW_ARROW
#property indicator_color2  clrRed
#property indicator_width2  3

double BuyBuffer[];
double SellBuffer[];
int handleEMA_Curta; // Média 20 (Gatilho)
int handleEMA_Longa; // Média 50 (Filtro de Segurança)

//+------------------------------------------------------------------+
int OnInit() {
   SetIndexBuffer(0, BuyBuffer, INDICATOR_DATA);
   SetIndexBuffer(1, SellBuffer, INDICATOR_DATA);
   
   PlotIndexSetInteger(0, PLOT_ARROW, 233); // Seta para cima
   PlotIndexSetInteger(1, PLOT_ARROW, 234); // Seta para baixo
   
   handleEMA_Curta = iMA(_Symbol, _Period, 20, 0, MODE_EMA, PRICE_CLOSE);
   handleEMA_Longa = iMA(_Symbol, _Period, 50, 0, MODE_EMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[],
                const double &open[], const double &high[], const double &low[],
                const double &close[], const long &tick_volume[], const long &spread[], const real_volume[]) {
   
   int start = (prev_calculated > 0) ? prev_calculated - 1 : 1;
   double ema20[], ema50[];
   
   ArraySetAsSeries(ema20, true); ArraySetAsSeries(ema50, true);
   ArraySetAsSeries(low, true); ArraySetAsSeries(high, true);
   ArraySetAsSeries(close, true); ArraySetAsSeries(open, true);
   ArraySetAsSeries(BuyBuffer, true); ArraySetAsSeries(SellBuffer, true);

   CopyBuffer(handleEMA_Curta, 0, 0, rates_total, ema20);
   CopyBuffer(handleEMA_Longa, 0, 0, rates_total, ema50);

   for(int i = start; i < rates_total - 1; i++) {
      BuyBuffer[i] = 0; SellBuffer[i] = 0;

      // --- LÓGICA DE ENTRADA (SETAS) ---

      // COMPRA: Tendência Forte (20 acima de 50) + Toque na média + Rejeição
      if(ema20[i] > ema50[i] && low[i] <= ema20[i] + (5 * _Point) && close[i] > open[i]) {
         BuyBuffer[i] = low[i] - (15 * _Point);
         if(i == 1) Alert("PEDRO: COMPRAR AGORA! Seta Lima no ", _Symbol);[cite: 2]
      }

      // VENDA: Tendência Forte (20 abaixo de 50) + Toque na média + Rejeição
      if(ema20[i] < ema50[i] && high[i] >= ema20[i] - (5 * _Point) && close[i] < open[i]) {
         SellBuffer[i] = high[i] + (15 * _Point);
         if(i == 1) Alert("PEDRO: VENDER AGORA! Seta Vermelha no ", _Symbol);[cite: 2]
      }
   }
   return(rates_total);
}

Con risposta

1
Sviluppatore 1
Valutazioni
(106)
Progetti
173
25%
Arbitraggio
23
9% / 78%
In ritardo
16
9%
In elaborazione
2
Sviluppatore 2
Valutazioni
(104)
Progetti
125
24%
Arbitraggio
23
26% / 52%
In ritardo
8
6%
In elaborazione
3
Sviluppatore 3
Valutazioni
(542)
Progetti
821
62%
Arbitraggio
33
27% / 45%
In ritardo
23
3%
Gratuito
Pubblicati: 1 codice
4
Sviluppatore 4
Valutazioni
(21)
Progetti
26
27%
Arbitraggio
0
In ritardo
2
8%
In elaborazione
5
Sviluppatore 5
Valutazioni
(8)
Progetti
9
0%
Arbitraggio
2
0% / 50%
In ritardo
1
11%
In elaborazione
6
Sviluppatore 6
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Ordini simili
I am looking to develop a custom Expert Advisor (EA) for MetaTrader (MT4/MT5) based on a defined technical analysis strategy and flexible risk management rules. The EA should operate on a chart and timeframe that I manually specify, with the ability to adapt its behavior dynamically when the timeframe is changed. Core Strategy Logic The EA will execute trades based on predefined technical analysis zones
I need a simple MT5 custom alert indicator/scanner. It must scan a list of FX pairs and alert me when my MACD continuation setup appears. Symbols The tool must allow me to enter a custom list of symbols, for example: EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD, NZDUSD, EURJPY, GBPJPY, AUDJPY, CADJPY, CHFJPY, NZDJPY, EURGBP, EURAUD, EURNZD, EURCAD, EURCHF, GBPAUD, GBPNZD, GBPCAD, GBPCHF, AUDNZD, AUDCAD, AUDCHF
Modify an existing EA 30 - 50 USD
This is to modify my Semi Auto EA -Looking for developer modify my existing EA to Pending Order EA (BS/BL/SL/SS). Relevent with Heiken Ashi Smooth ,Moving Average , Acceleration. Concept MAster and Slave. Ready to give previous soucre code as guide. Work to do - 1)To modify this EA to Pending Order. 2) to add new feature - Risk Management/moneymanagement 3) To modify 4 slave to 7 slave will give the previous to
I have a indicator working good but have some bug for arrow placement . budget is fixed 30 used . only experience developer apply. i want to arrow get put on just above the candle high and candle low
I am looking to get this Indicator but i don't know which indicator is it , if anyone know about it let me know , images are attached , this is used for Binary Pairs
Pip Scalper Bot 60+ USD
i want a trading bot that is aleast 98% sure,and cam also do scalping 99% correct using smart money concept, ICT, ALL technical analysis on it and also put risk management on it
Greetings I need MT5 developer that has expertise in developing a custom indicator for mt5 boom and crash based on my exact details and requirements which would be discuss later. Kindly bid for this project if it is something you can handle for me
Hello, I have a Ctrader indicator with the source code, I was wondering if this possible to convert it to Quantower. Hello, I have a Ctrader indicator with the source code, I was wondering if tis possible to convert it to Quantower., i need an expert who can convert it perfectly
I’m looking for an experienced NinjaTrader developer to complete an existing custom indicator. The project is already partially built and is well organized, completely functional, and well documented. The former developer experienced some personal difficulties and unfortunately cannot continue. Key Requirement (Read Carefully): You MUST have direct, hands-on experience with NinjaTrader and NinjaScript (C#) . This is
I already have a fully developed MT5 Expert Advisor with all required prop firm features, including: Risk management Daily loss & max drawdown limits Spread & slippage filters News filter Trade management system The EA structure is complete. 👉 What I need is a professional developer to replace ONLY the entry logic with a high-quality, rule-based trading strategy. 🚨 STRICT REQUIREMENT (READ CAREFULLY): I am NOT

Informazioni sul progetto

Budget
35+ USD
IVA (20%): 7 USD
Totale: 42 USD
Per lo sviluppatore
31.5 USD

Cliente

Ordini effettuati1
Numero di arbitraggi0