Loading…

Starter Lsma V12

Starter Lsma V12 is an expert advisor (trading robot) for MetaTrader 4 from the Old Kings collection. This copy is version 12. Its source code uses moving averages. It places pending orders, moves the stop behind price and has a trading-hours filter. It has 27 settings, for example Debug (default 0), Account Is Mini (default 0) and Live Trading (default 1). 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 · v12 · Free

About Starter Lsma V12

Starter Lsma V12 is an expert advisor (trading robot) for MetaTrader 4 based on Moving Average. It places pending buy/sell stop or limit orders, moves the stop loss behind price (trailing stop / break-even) and trades only in the hours you set (time filter). It has 27 settings, such as Debug, Account is mini and Live trading. MQL source code included.

It also can size trades from your balance and risk percent and works on several symbols at once.

Files in the download: starter_LSMA_v12.mq4.

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

Settings

SettingDefaultWhat it does
Debug0Change to 1 to allow print
Account is mini0Change to 1 if trading mini account
Live trading1Change to 1 if trading live.
Riskpercent5Change to whatever percent of equity you wish to risk.
Decrease factor3Used to decrease lot size after a loss is experienced to protect equity. Recommended not to change.
Stop loss35Maximum pips willing to lose per position.
Trailing stop0Change to whatever number of pips you wish to trail your position with.
Margincutoff800Expert will stop trading if equity level decreases to that level.
Maxtrades10Total number of positions on all currency pairs. You can change this number as you wish.
Take profit0Maximum profit level achieved.
Slippage10Possible fix for not getting filled or closed
Use ema angle zerofalse
Ema period34EMAAngleZero Period
Angle treshold0.2
Start ema shift6Check last 6 bars
End ema shift0Bar shift (0 = current bar)
Use i trend juicetrue
Bands period20Period or timeframe used by the calculation
Bands deviation2
Power period13Period or timeframe used by the calculation
Juice period7Period or timeframe used by the calculation
Juice level4
Lsma period125Least Squares Moving average period.
Lsma period214Least Squares Moving average period 2.
Lsma period36Least Squares Moving average period 3.
Lots1standard lot size.
Turnon1Turns expert on, change to 0 and no trades will take place even if expert is enabled.

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 · Trailing Stop & Break-even · Time Filter · Risk & Lot Size · Multi-Currency · Moving Average · MT4 Expert Advisor · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria