Loading…

Once Per Bar Expert 2

Once Per Bar Expert 2 — a MetaTrader 4 expert advisor (trading robot) kept in the Old Kings collection. It places pending orders, can size trades from your risk and has a news filter. It has 40 settings, for example Priceoffset (default 13.0), inp2 (default (2) Once per bar) and inp2 TIMEFRAME (default PERIOD_H4). Before any live use, test it on a demo account and check its lot size, stop loss and trading hours. 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 Once Per Bar Expert 2

Once Per Bar Expert 2 is an expert advisor (trading robot) for MetaTrader 4. It places pending buy/sell stop or limit orders, can size trades from your balance and risk percent and has a news filter. It has 40 settings, such as Priceoffset, Inp2 and Inp2 timeframe. MQL source code included.

Files in the download: once per bar expert.mq4.

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

Settings

SettingDefaultWhat it does
Priceoffset13.0Price offset
Inp2(2) Once per bar
Inp2 timeframePERIOD_H4Period or timeframe used by the calculation
Inp2 pass max times1
Inp3(3) Close trades
Inp3 orders scopegroup
Inp3 symbol scopesymbol
Inp3 buys or sellsboth
Inp4(4) Delete pending orders
Inp4 orders scopegroup
Inp4 symbol scopesymbol
Inp4 buys or sellsboth
Inp4 limits or stopsboth
Inp5 orders group
Inp5 d price candle id1
Inp5 d price timeframe0Period or timeframe used by the calculation
Inp5 price offset10
Inp5 volume size0.01
Inp5 dl stop loss candle id1Stop loss distance
Inp5 take profit pips100Take profit distance
Inp6(6) Sell pending order
Inp6 orders group
Inp6 d price candle id1
Inp6 d price timeframe0Period or timeframe used by the calculation
Inp6 price offset10
Inp6 volume size0.01
Inp6 dl stop loss candle id1Stop loss distance
Inp6 take profit pips100Take profit distance
Inp7 on profit pips40
Inp7 be poffset pips5
Inp7 orders scopegroup
Inp7 symbol scopesymbol
Inp7 buys or sellsboth
Inp8 orders scopegroup
Inp8 symbol scopesymbol
Inp8 buys or sellsboth
Inp9 orders scopegroup
Inp9 symbol scopesymbol
Inp9 buys or sellsboth
Inp9 limits or stopsstops

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: Pending Orders · Risk & Lot Size · News Trading · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria