ronismc333 — Strategy by dorbenshimol20
By dorbenshimol20
Performance Metrics
- Author: dorbenshimol20
- Symbol: FX:XAUUSD
- Timeframe: 5 minutes
- Net P&L: +441.91 USD (+0.04%)
- Win Rate: 34.7%
- Profit Factor: 1.065
- Max Drawdown: 890.07 USD (0.09%)
- Total Trades: 730
Description
[14:48, 5.1.2026] דור בן שימול: //+------------------------------------------------------------------+//| SMC GBP PRO EA – FTMO Ready 30M עם חצים |//+------------------------------------------------------------------+#property strictinput double RiskPercent = 1.0;input int RSIPeriod = 14;input int StopLossPoints = 200;input int TakeProfitPoints = 400;input int MagicNumber = 202630;input bool EnableAlerts = true;int rsiHandle;//+------------------------------------------------------------------+int OnInit(){ rsiHandle = iRSI(_Symbol, PERIOD_M30, RSIPeriod, PRICE_CLOSE); Comment("SMC GBP PRO EA\nStatus: CONNECTED\nAccount: ", AccountNumber()); return(INIT_SUCCEEDED);}//+------------------------------------------------------------------+void OnTick(){ if(PositionsTotal() > 0) { UpdateStatus(); return; } double rsi[]; CopyBuffer(rsiHandle,0,0,1,rsi); double high1 = iHigh(_Symbol, PERIOD_M30,1); double low1 = iLow(_Symbol, PERIOD_M30,1); double close1= iClose(_Symbol, PERIOD_M30,1); double high2 = iHigh(_Symbol, PERIOD_M30,2); double low2 = iLow(_Symbol, PERIOD_M30,2); //==== HTF TREND (1H EMA50) ==== double emaHTF = iMA(_Symbol, PERIOD_H1, 50, 0, MODE_EMA, PRICE_CLOSE, 0); double closeHTF = iClose(_Symbol, PERIOD_H1, 0); bool htfBull = closeHTF > emaHTF; bool htfBear = closeHTF low2; bool sweepSell = high1 > high2 && close1 high2; bool bosSell = sweepSell && close1 50 && htfBull; bool sell = bosSell && rsi[0] 0) text += "\nTrade Open!"; Comment(text);}//+------------------------------------------------------------------+void DrawArrow(string name, int shift, double price, color clr, string text){ string objName = name + IntegerToString(TimeCurrent()); if(ObjectFind(0,objName) >=0) ObjectDelete(0,objName); ObjectCreate(0,objName,OBJ_ARROW,0,Time[shift],price); ObjectSetInteger(0,objName,OBJPROP_COLOR,clr); ObjectSetInteger(0,objName,OBJPROP_WIDTH,2); ObjectSetInteger(0,objName,OBJPROP_ARROWCODE,233); // חץ ObjectSetString(0,objName,OBJPROP_TEXT,text);}------------------------------------------------------------------+//| SMC GBP PRO EA – FTMO 30M + TP/SL + Trailing Stop |//+------------------------------------------------------------------+#property strictinput double RiskPercent = 1.0;input int RSIPeriod = 14;input int StopLossPoints = 200;input int TakeProfitPoints = 400;input int MagicNumber = 202630;input bool EnableAlerts = true;int rsiHandle;//+------------------------------------------------------------------+int OnInit(){ rsiHandle = iRSI(_Symbol, PERIOD_M30, RSIPeriod, PRICE_CLOSE); Comment("SMC GBP PRO EA\nStatus: CONNECTED\nAccount: ", AccountNumber()); return(INIT_SUCCEEDED);}//+------------------------------------------------------------------+void OnTick(){ // UpdateStatus(); // Trailing Stop ManageTrailing(); if(PositionsTotal() > 0) return; double rsi[]; CopyBuffer(rsiHandle,0,0,1,rsi); double high1 = iHigh(_Symbol, PERIOD_M30,1); double low1 = iLow(_Symbol, PERIOD_M30,1); double close1= iClose(_Symbol, PERIOD_M30,1); double high2 = iHigh(_Symbol, PERIOD_M30,2); double low2 = iLow(_Symbol, PERIOD_M30,2); //==== HTF TREND (1H EMA50) ==== double emaHTF = iMA(_Symbol, PERIOD_H1, 50, 0, MODE_EMA, PRICE_CLOSE, 0); double closeHTF = iClose(_Symbol, PERIOD_H1, 0); bool htfBull = closeHTF > emaHTF; bool htfBear = closeHTF low2; bool sweepSell = high1 > high2 && close1 high2; bool bosSell = sweepSell && close1 50 && htfBull; bool sell = bosSell && rsi[0] 0) text += "\nTrade Open!"; Comment(text);}//+------------------------------------------------------------------+void DrawArrow(string name, int shift, double price, color clr, string text){ string objName = name + IntegerToString(TimeCurrent()); if(ObjectFind(0,objName) >=0) ObjectDelete(0,objName); ObjectCreate(0,objName,OBJ_ARROW,0,Time[shift],price); ObjectSetInteger(0,objName,OBJPROP_COLOR,clr); ObjectSetInteger(0,objName,OBJPROP_WIDTH,2); ObjectSetInteger(0,objName,OBJPROP_ARROWCODE,233); // חץ ObjectSetString(0,objName,OBJPROP_TEXT,text);}//+------------------------------------------------------------------+void ManageTrailing(){ for(int i=PositionsTotal()-1;i>=0;i--) { ulong ticket = PositionGetTicket(i); if(PositionSelectByTicket(ticket)) { double price = PositionGetDouble(POSITION_PRICE_OPEN); double sl = PositionGetDouble(POSITION_SL); double tp = PositionGetDouble(POSITION_TP); ENUM_POSITION_TYPE type = (ENUM_POSITION_TYPE)PositionGetInteger(POSITION_TYPE); double newSL = 0; if(type == POSITION_TYPE_BUY) { double trail = SymbolInfoDouble(_Symbol,SYMBOL_BID) - StopLossPoints*_Point; if(trail > sl) newSL = trail; } else if(type == POSITION_TYPE_SELL) { double trail = SymbolInfoDouble(_Symbol,SYMBOL_ASK) + StopLossPoints*_Point; if(trail < sl) newSL = trail; } if(newSL != 0) { MqlTradeRequest req; MqlTradeResult res; ZeroMemory(req); req.action = TRADE_ACTION_SLTP; req.symbol = _Symbol; req.position = ticket; req.sl = newSL; req.tp = tp; OrderSend(req,res); } } }}