Loading…

Shock Bar 1.2

Shock Bar 1.2 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. Its source code uses moving averages. It raises the lot size after losses (martingale — high risk), places pending orders and can size trades from your risk. It has 40 settings, for example WORC MODE (default --- ---), Exit mode (default TRUE) and LOT SETUP BLOK (default --- ---). Run it in the Strategy Tester and then on a demo account to see how it opens and closes trades. Inside: 1 EA file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Expert advisor · MT4 · v1.0 · Free

About Shock Bar 1.2

Shock Bar 1.2 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It increases the lot size after a losing trade (martingale), places pending buy/sell stop or limit orders and can size trades from your balance and risk percent. It has 40 settings, such as Worc mode, Exit mode and Lot setup blok. MQL source code included.

Files in the download: ShockBar 1.2.mq4.

Trading robots can lose money. Check every setting and test on a demo account before using real funds.

Settings

SettingDefaultWhat it does
Worc mode--- ---
Exit modeTRUE
Lot setup blok--- ---
Lot const or notFALSE
Risk percent3.0Risk per trade (percent of balance)
Lot0.01Trade size in lots
Max l0.0
Lot multiplicator1.667How much the lot size grows after a loss
N lot mult2
Step setup blok--- ---Distance between orders
Mode step0Distance between orders
Step5Distance between orders
Step uv step5Distance between orders
Setup signal blok--- ---
Off ma h4TRUE
Mode ma1
Tf for ma5
Period ma14Number of bars in the calculation
Close setup blok--- ---
Mode close orders1
Take profit30Take profit distance
Protection tp5
Tralling stop5
Restriction--- - ---
Buy sell summTRUE
Max trades18Maximum number of open trades
Min proc sv sr0.0
Def stoploss--- SL() ---Stop loss distance
Mode sl inst0
Percent sl40.0
N6--- %- ---
Mode enable otboy2
N day prof7
Percent prof from otboy40.0
N ord enable otboy4
R cen enable otboy100
Order id--- ---
Magic1111111Magic number that tells this EA's orders apart
Out data--- ---
Line on graphTRUE

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
  6. Test it first on a demo account or in the Strategy Tester.

Download the PDF guide

Tags: Martingale · Pending Orders · Risk & Lot Size · Moving Average · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria