Unlocking the Potential of the exp_Amstell EA for MetaTrader 5

Mike 2018.06.16 19:25 34 0 0
Attachments

Idea by: Iurii Tokman.

MQL5 code by: Vladimir Karputov.


How the exp_Amstell EA Works

When you kick off the exp_Amstell EA for the first time, it will automatically open a BUY position with a specified volume of Lots. From there, it keeps an eye on all active trades using the OnTradeTransaction function, tracking the opening prices separately for BUY and SELL positions. Here’s the inside scoop on how it operates:

  • If the price of the last opened BUY position is above the current Ask price by Step, the EA will open up a new BUY position.
  • If the price of the last opened SELL position is below the current Bid price by Step, it will trigger a new SELL position.

Additionally, the EA keeps tabs on a virtual Take Profit. As soon as your position hits or surpasses the Virtual Take Profit threshold, it will close the position automatically at market price.


Input Parameters Explained

  • Lots - This defines the volume of the position you want to open.
  • Virtual Take Profit (in pips) - This sets your virtual Take Profit level.
  • Step (in pips) - This indicates the minimum distance between the last position price.
  • Magic Number - A unique identifier to distinguish your EA.

exp_Amstell

List
Comments 0