Smc sniper bot

MQL5 Indicateurs Experts

Spécifications

//+------------------------------------------------------------------+
//| SMC SNIPER BOT PRO V2 |
//| Smart Money Concept EA for V25 |
//+------------------------------------------------------------------+
#property strict

input double LotSize = 0.20;
input int StopLoss = 250;
input int TakeProfit = 500;
input int LookBack = 30;
input bool UseTrendFilter = true;

double lastHigh;
double lastLow;
double trendMA;

//+------------------------------------------------------------------+
int OnInit()
{
   Print("SMC Sniper PRO Started");
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+

void OnTick()
{
   if (PositionsTotal() > 0) return;

   lastHigh = iHigh(_Symbol, PERIOD_M15,
      iHighest(_Symbol, PERIOD_M15, MODE_HIGH, LookBack, 1));

   lastLow = iLow(_Symbol, PERIOD_M15,
      iLowest(_Symbol, PERIOD_M15, MODE_LOW, LookBack, 1));

   trendMA = iMA(_Symbol, PERIOD_M15, 50, 0, MODE_EMA, PRICE_CLOSE, 0);

   double price = SymbolInfoDouble(_Symbol, SYMBOL_BID);

   bool upTrend = price > trendMA;
   bool downTrend = price < trendMA;

   // ----- BUY LOGIC -----
   if (price < lastLow)
   {
      if (!UseTrendFilter || upTrend)
      {
         BuyTrade();
      }
   }

   // ----- SELL LOGIC -----
   if (price > lastHigh)
   {
      if (!UseTrendFilter || downTrend)
      {
         SellTrade();
      }
   }
}

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

void BuyTrade()
{
   double ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK);

   double sl = NormalizeDouble(ask - StopLoss * _Point, _Digits);
   double tp = NormalizeDouble(ask + TakeProfit * _Point, _Digits);

   MqlTradeRequest req;
   MqlTradeResult res;

   ZeroMemory(req);

   req.action = TRADE_ACTION_DEAL;
   req.symbol = _Symbol;
   req.volume = LotSize;
   req.type = ORDER_TYPE_BUY;
   req.price = ask;
   req.sl = sl;
   req.tp = tp;
   req.deviation = 20;
   req.magic = 777;

   OrderSend(req, res);
}

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

void SellTrade()
{
   double bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);

   double sl = NormalizeDouble(bid + StopLoss * _Point, _Digits);
   double tp = NormalizeDouble(bid - TakeProfit * _Point, _Digits);

   MqlTradeRequest req;
   MqlTradeResult res;

   ZeroMemory(req);

   req.action = TRADE_ACTION_DEAL;
   req.symbol = _Symbol;
   req.volume = LotSize;
   req.type = ORDER_TYPE_SELL;
   req.price = bid;
   req.sl = sl;
   req.tp = tp;
   req.deviation = 20;
   req.magic = 777;

   OrderSend(req, res);
}

Répondu

1
Développeur 1
Évaluation
(13)
Projets
19
37%
Arbitrage
1
0% / 100%
En retard
1
5%
Travail
2
Développeur 2
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(1)
Projets
1
0%
Arbitrage
1
0% / 0%
En retard
0
Travail
4
Développeur 4
Évaluation
(376)
Projets
482
23%
Arbitrage
59
54% / 25%
En retard
55
11%
Chargé
5
Développeur 5
Évaluation
(5)
Projets
6
0%
Arbitrage
1
0% / 100%
En retard
1
17%
Travail
6
Développeur 6
Évaluation
(4)
Projets
3
33%
Arbitrage
2
0% / 100%
En retard
0
Gratuit
7
Développeur 7
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
8
Développeur 8
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
9
Développeur 9
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
10
Développeur 10
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
11
Développeur 11
Évaluation
(13)
Projets
20
40%
Arbitrage
3
0% / 67%
En retard
3
15%
Gratuit
12
Développeur 12
Évaluation
(255)
Projets
261
30%
Arbitrage
0
En retard
3
1%
Gratuit
Publié : 2 codes
13
Développeur 13
Évaluation
(5)
Projets
7
0%
Arbitrage
8
13% / 75%
En retard
3
43%
Gratuit
Commandes similaires
Logic: Healthy → no action Weak → reduce exposure Danger → strong protection Requirements: Equity tracking Basic trade management Simple dashboard Only apply if you understand risk-based EA logic
Mani 30 - 50 USD
Title: MT5 Martingale EA (Based on Stop Loss of Previous Trade) Description: Hello, I need a simple and efficient MT5 Expert Advisor based on a martingale logic. Main Logic: The EA should work with trades placed manually or by another EA (including limit orders). When a trade hits Stop Loss, the EA must automatically open a new trade in the same direction. The lot size of the new trade should be multiplied
Existing EA 30 USD
I’m looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction or
Leonard Quantum FX 80 - 120 USD
I want the EA to be fully automated and capable of taking trades across multiple timeframes. It should be optimized for a starting account balance of $100 with proper risk management suitable for a small account, and it will be used with the broker ApexMarket.io. ⸻ Platform • Platform: MetaTrader 5 (MT5) • Type: Fully automated Expert Advisor • Operation: Hands-free (no manual trade management required) ⸻ 📈 Markets
Wealthy bot 50 - 200 USD
‎Build a mobile-based trading bot system integrated with MetaTrader 5 that specializes in high-frequency “machine gun” style trading on synthetic indices (crash 50 and Crash 300). ‎ ‎The bot must continuously scan the market in real-time using M1 and M5 timeframes and execute frequent trades based on probability, not prediction. Its core function is to detect early signs of potential reversals by analyzing combined
Preciso de um especialista completo, totalmente profissional, que trabalhe com o indicador Hull Moving Average. Que faça entradas exatamente na mudança de cores com base no Exp_ColorHma, de Nikolay e também com a opção de entrada exatamente no cruzamento de duas Hull Average Moving(não na próxima vela), uma lenta e outra rápida. O programador deverá fazer um trabalhado de profissional. Dispenso curiosos ou
Tebza ngwenya 30 - 100 USD
Just know your deal,if you don't know what you are up to I gotchu. This is my first time trying also so yeah, but otherwise if you looking for something grand I'm here, if you got offered me well you in for some great time
Looking to acquire an existing, profitable Expert Advisor (EA) with full source code to add to our client investment portfolio. To be clear, this is not a request to develop or design a new strategy. If you already have an EA that is proven, consistent, and production-ready, with at least 6 months of history performance I’m open to reviewing it immediately. Please apply only if you meet all the requirements below
EA Script editor 30 - 35 USD
I need someone who will help me with a script that supports / cancels out negative positions. So that with a deposit of 600 euros, it doesn't close 300 euros. More info on pv
Pips Muncher 30 - 35 USD
I need a good programmer to creat an ea that will open a trade once the parametres i set are met on the chat that i place it on. The Ea will not need to do any analyses as i would do that manually. It only needs to execute a trade when all the conditions that i will be sending meets. The ea will add stop loss an Tp

Informations sur le projet

Budget
30+ USD

Client

Commandes passées1
Nombre d'arbitrages0