Loading…

KAMA EA

This Old Kings expert advisor (trading robot) for MetaTrader 4 is called KAMA EA. As the name suggests, the idea behind it is Kaufman's adaptive moving average (efficiency ratio). It raises the lot size after losses (martingale — high risk), works with a grid of orders and places pending orders. It has 40 settings, for example Length (default 20), General Section and General Section Desc (default https://github.com/sibvi). Watch it on a demo account for a while — robots can behave differently with each broker. 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 KAMA EA

KAMA EA is an expert advisor (trading robot) for MetaTrader 4. It increases the lot size after a losing trade (martingale), opens a grid of orders at fixed price steps and places pending buy/sell stop or limit orders. It has 40 settings, such as Length, General section and General section desc. MQL source code included.

It also moves the stop loss behind price (trailing stop / break-even), can size trades from your balance and risk percent and has a news filter.

Files in the download: KAMA_EA.mq4.

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

Settings

SettingDefaultWhat it does
Length20KAMA length
General section== General ==
General section deschttps://github.com/sibvic/mq4-templates/Description of parameters could be found at
Ecn brokerfalseECN Broker?
Entry logicTradingModeLiveEntry logic
Exit logicTradingModeLiveExit logic
Lots value0.1Position size
Lots typePositionSizeContractPosition size type
Slippage points3Slippage, points
Trading sideBothSidesWhat trades should be taken
Logic directionDirectLogicLogic type
Close on oppositetrueClose on opposite signal
Cap section== Position cap ==
Position capfalsePosition Cap
No of positions1Max # of buy+sell positions
No of buy position1Max # of buy positions
No of sell position1Max # of sell positions
Martingale section== Martingale type ==
Martingale typeMartingaleDoNotUseMartingale type
Martingale lot sizing typeMartingaleLotSizingNoMartingale lot sizing type
Martingale lot value1.5Matringale lot sizing value
Martingale step typeMartingaleStepSizePercentStep unit
Martingale step5Open matringale position step
Net stop loss typeStopLimitDoNotUseNet stop loss type
Net stop loss value10Net stop loss value
Take profit atr multiplicator1Take profit multiplicator (for ATR TP)
Net take profit typeStopLimitDoNotUseNet take profit type
Net take profit value10Net take profit value
Other section== Other ==
Magic number42Magic number
Start time000000Start time in hhmmss format
Stop time000000Stop time in hhmmss format
Mandatory closingfalseMandatory closing for non-trading time
Use weekly timingfalseWeekly time
Week start dayDayOfWeekSundayStart day
Week start time000000Start time in hhmmss format
Week stop dayDayOfWeekSaturdayStop day
Week stop time235959Stop time in hhmmss format
Print logfalsePrint decisions into the log (On bar close only!)
Alerts section== Alerts ==

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 · Grid · Pending Orders · Trailing Stop & Break-even · Risk & Lot Size · News Trading · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria