Skip to content

JoeG777/MT4_Forex_Trading_Bot_Template

Repository files navigation

MT4_Forex_Trading_Bot_Template

Goal

To get an understanding for the different parts of a robust trading system with MetaTrader 4.

Ressources

Main Parts

1. Entries

Enters if there was a quick pullback.

if high_2_bars_ago > high_1_bar_ago && low_2_bars_ago < low_1_bar_ago && lastClose > high_2_bars_ago

That rules looks like this on a chart.

Entry

2. Sizing Algorithm

output = (fractalOfAccountToRisk * AccountEquity) / (lotSize * tickValue * stopLossInTicks * adjustForTicks);

3. Exits

  • Stop Loss (in Ticks)

stopLoss = (volMultiplier * VolATR) / (K * Point);

  • same applies to Take Profit

Backtest Results

Backtest

Thank you very much and have fun playing around!

About

MQL4 file for developing trading bots for MetaTrader4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages