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
| Setting | Default | What it does |
|---|---|---|
| Worc mode | --- --- | |
| Exit mode | TRUE | |
| Lot setup blok | --- --- | |
| Lot const or not | FALSE | |
| Risk percent | 3.0 | Risk per trade (percent of balance) |
| Lot | 0.01 | Trade size in lots |
| Max l | 0.0 | |
| Lot multiplicator | 1.667 | How much the lot size grows after a loss |
| N lot mult | 2 | |
| Step setup blok | --- --- | Distance between orders |
| Mode step | 0 | Distance between orders |
| Step | 5 | Distance between orders |
| Step uv step | 5 | Distance between orders |
| Setup signal blok | --- --- | |
| Off ma h4 | TRUE | |
| Mode ma | 1 | |
| Tf for ma | 5 | |
| Period ma | 14 | Number of bars in the calculation |
| Close setup blok | --- --- | |
| Mode close orders | 1 | |
| Take profit | 30 | Take profit distance |
| Protection tp | 5 | |
| Tralling stop | 5 | |
| Restriction | --- - --- | |
| Buy sell summ | TRUE | |
| Max trades | 18 | Maximum number of open trades |
| Min proc sv sr | 0.0 | |
| Def stoploss | --- SL() --- | Stop loss distance |
| Mode sl inst | 0 | |
| Percent sl | 40.0 | |
| N6 | --- %- --- | |
| Mode enable otboy | 2 | |
| N day prof | 7 | |
| Percent prof from otboy | 40.0 | |
| N ord enable otboy | 4 | |
| R cen enable otboy | 100 | |
| Order id | --- --- | |
| Magic | 1111111 | Magic number that tells this EA's orders apart |
| Out data | --- --- | |
| Line on graph | TRUE |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Martingale · Pending Orders · Risk & Lot Size · Moving Average · MT4 Expert Advisor · MQL4 Source Code