Candle Comparison Grid Scalper
- Experts
- Versione: 10.2
- Attivazioni: 10
Candle Comparison Grid Scalper is an automated Expert Advisor for MetaTrader 5.
IMPORTANT RISK NOTICE
This EA uses a grid / multi-trade technique and can keep many trades open in the same direction without a stop loss on each trade. A basket can show a large floating loss and a long drawdown before it recovers. Position size and the number of open trades can grow. Past or simulated results do not guarantee future results. Test on a demo account first and only risk money you can afford to lose.
How it works
- Every 100 ticks: if the low of bar 1 is above the low of the bar N candles back the EA buys; if the high of bar 1 is below the high of that bar it sells.
- Fixed lot, up to a set number of trades per bar and side, no fixed stop loss or take profit.
- Closes the Buy or Sell side when the profit of that side reaches the target and the direction flips; trails the money of the whole basket; optional drawdown cut-off.
- Buttons on the chart: close profit Buy/Sell and close all Buy/Sell. The chart shows broker, balance, equity, spread, leverage and statistics.
Safety and broker compatibility
- Volume is normalized to the symbol minimum, maximum and step before every order.
- Free margin is checked with OrderCalcMargin before an order is sent.
- Stops level and freeze level are respected when placing or modifying orders and SL/TP; a modification is not sent when the values are unchanged and nothing is modified inside the freeze zone.
- Symbol trade mode, trading session, order limit and filling mode are checked before sending requests.
- No DLL, no web requests, no files are written.
BOTKRIT recovery core and dashboard
This build includes a basket recovery core and a standard BOTKRIT panel. When the open basket of this EA loses more than the set percentage of the balance the EA pauses its own new entries and the core can open balancing (hedge) trades with its own magic number until the basket can be closed at break-even plus a target; the basket is cut at the set loss percentage. Balancing trades can increase exposure. The core works on hedging accounts only and can be switched off with InpRKOn = false. The panel can be collapsed and moved to another corner.
Inputs
- EA_Name (default NuclearBombV9): Ea name
- DD_Cutloss_Percent (default 100.0): Dd cutloss percent
- LOTsRebate (default 10.0): Lots rebate
- LOT1 (default 0.01): Lot1
- LOT2 (default 0.02): Lot2
- BULLET_Forward (default 3): Bullet forward
- BULLET_Reversal (default 3): Bullet reversal
- NearFollow_PIP (default 50.0): Near follow pip
- NearReversal_PIP (default 30.0): Near reversal pip
- FIX_Profit_Percent (default 1.1): Fix profit percent
- Trailling_Start_percent (default 0.1): Trailling start percent
- Trailling_Step_percent (default 0.01): Trailling step percent
- Trailing_Stop_percent (default 0.05): Trailing stop percent
- Direction_Strength (default 10): Direction strength
- Refresh_System_Hour (default 2.0): Refresh system hour
- Buffer_Trade_Order (default 300.0): Buffer trade order
- ON_OFF_FunctionOpen1 (default true): On off function open1
- ON_OFF_FunctionOpen2 (default true): On off function open2
- LOT_Multiply_F2 (default 1.3): Lot multiply f2
- LOT_Multiply_F3 (default 1.5): Lot multiply f3
- Direction_Reversal (default 3.0): Direction reversal
- Candleshowtext (default 12): Candleshowtext
- AdjustPips (default 1): Adjust pips
- Near_Distance (default 30.0): Near distance
- Reset_Candle (default 9999999.0): Reset candle
- Font_Candle (default 10): Font candle
- GAP_Swing_Trade (default 30.0): Gap swing trade
- PIP_TL_Pending (default 30.0): Pip tl pending
- DD_Switch_Percent (default 5.0): Dd switch percent
- Monday (default true): Monday
- Tuesday (default true): Tuesday
- Wednesday (default true): Wednesday
- Thursday (default true): Thursday
- Friday (default true): Friday
- Saturday (default true): Saturday
- Sunday (default true): Sunday
- Start_open_ASIA (default 04:05): Start open asia
- End_Close_ASIA (default 011:55): End close asia
- Start_open_EUROPE (default 12:05): Start open europe
- End_Close_EUROPE (default 18:55): End close europe
- Start_open_AMERICA (default 19:05): Start open america
- End_Close_AMERICA (default 21:55): End close america
- Open_Sleep_Mode (default 22:05): Open sleep mode
- Close_Sleep_Mode (default 23:55): Close sleep mode
- TF_Reference (default PERIOD_H1): Tf reference
- TF_Confirm (default PERIOD_M15): Tf confirm
- TF_Signal (default PERIOD_M5): Tf signal
- TF_H4 (default PERIOD_H4): Tf h4
- TF_M5 (default PERIOD_M5): Tf m5
- TF_Current (default 0): Tf current
- FIT (default 2.0): Fit
- Time_Break_Update_minute (default 30.0): Time break update minute
- FastClose_BUY (default 0): Fast close buy
- FastClose_SELL (default 0): Fast close sell
- Profit_Internal (default 10.0): Profit internal
- MA1 (default 50): Ma1
- MA2 (default 100): Ma2
- Candle (default 12): Candle
- lotsize (default 0.05): Lotsize
- gridlevels (default 5.0): Gridlevels
- g_magic (default 1.0): magic
- Profit_Close_BUY_SELL (default 10.0): Profit close buy sell
- MagicStart (default 1257): Magic Number, kind of...
Recovery core and dashboard inputs:
- InpRKOn (default true): Recovery core on/off: when the basket loss grows, new entries of the EA are paused and balancing trades can be opened until the basket closes
- InpRKStartPct (default 3.0): Start recovery when the basket loss exceeds this percent of the balance at basket start
- InpRKStartATR (default 3.0): or when price runs against the net position by this many ATR (0 = off)
- InpRKCutPct (default 30.0): Close the whole basket at this percent loss of the start balance
- InpRKShockATR (default 10.0): Shock distance to survive (ATR multiples), used for the lot ceiling
- InpRKMinMargin (default 300.0): Do not open a recovery trade if the margin level after opening would be below this percent
- InpRKSpreadMul (default 2.0): Pause recovery trades when the spread is above this multiple of the 60-minute median
- InpRKCorner (default bottom right): Corner of the BOTKRIT panel
- InpRKBar0 (default FULL): Bar-0 label (basket profit, spread and leverage)
Recommended setup
- M1 to M5 charts on gold or major pairs, raw-spread account.
- Minimum capital: At least 2,000 USD for the default 0.05 lot.
- Test on a demo account first and keep the lot small.
