To get an understanding for the different parts of a robust trading system with MetaTrader 4.
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.
output = (fractalOfAccountToRisk * AccountEquity) / (lotSize * tickValue * stopLossInTicks * adjustForTicks);
- Stop Loss (in Ticks)
stopLoss = (volMultiplier * VolATR) / (K * Point);
- same applies to Take Profit