Home System Trading Post

Fluctuate EA: Your Go-To Tool for Swing Trading on MetaTrader 5

Attachments
22788.zip (7.57 KB, Download 0 times)

Idea by: Nikolay Khrushchev

Code by: barabashkakvn

This EA is designed for hedge accounts only!

Meet the Fluctuate EA, a powerful tool for swing traders! This Expert Advisor sets pending Sell Stop or Buy Stop orders with an increased lot size, working in the opposite direction to capitalize on market fluctuations.

Key Inputs:

  • Stop Loss: in pips (e.g., 1.00045-1.00055 = 1 pip)
  • Take Profit: in pips (e.g., 1.00045-1.00055 = 1 pip)
  • Trailing Stop: minimum distance from price to Stop Loss, in pips
  • Trailing Step: in pips (e.g., 1.00045-1.00055 = 1 pip)
  • Money Management: Choose between Lot or Risk for the first position - either fixed lot or risk percentage relative to your balance
  • Value for Money Management: Specify your preference here
  • Step: pending stop order step, in pips (e.g., 1.00045-1.00055 = 1 pip)
  • Lot Coefficient: ratio for increasing lot sizes in a series of trades
  • Multiply Volume: enable or disable multiplying the total volume of open positions by the Lot Coefficient
  • Maximum Number of Positions: set your limit here
  • Maximum Volume of All Positions: control your total exposure
  • Profit Target in Money: set a monetary target ("0.0" turns this feature off)
  • Minimum Equity: pause trading when below this percentage of balance
  • Close All Positions at Startup: an easy way to reset
  • Magic Number: a unique ID for your EA
  • Start Hour: specify when trading begins
  • End Hour: specify when trading ends

The Fluctuate EA kicks off a trading cycle as soon as it falls within your specified time frame between Start Hour and End Hour, as long as there are no pending orders or positions opened by this EA. When a position is opened, it comes with a pending stop order, and the volume of each position is determined by the Money Management settings.

Position direction is based on a simple rule:

If the Close of Bar #0 is greater than the Close of Bar #1, open a BUY; otherwise, open a SELL.

The type of pending stop order depends on whether you currently have an open position:

If BUY, set a Sell Stop; if SELL, set a Buy Stop.

A pending stop order is placed at a Step distance from the current price. As the trade progresses, enable the Trailing Stop and Trailing Step features to help manage your profits alongside the Profit Target in Money and Minimum Equity parameters.

When a pending order is activated, a new pending stop order with an increased lot size is placed in the opposite direction, maximizing your trading opportunities.

For optimal performance, it’s recommended to run optimization on smaller timeframes. Focus on getting your Stop Loss, Take Profit, and Step parameters dialed in for the best results.

Related Posts

Comments (0)