Skip to content

ForexRobotEasy/AW-Bollinger-Bands-EA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

AW Bollinger Bands EA

This is a sample code for the AW Bollinger Bands EA developed by the Forex Robot Easy Team. This code is provided as a reference and can be used to understand how the EA works.

Description:

The AW Bollinger Bands EA is an expert advisor that uses the Bollinger Bands indicator to generate trading signals. It opens buy positions when the price crosses below the lower Bollinger Band and opens sell positions when the price crosses above the upper Bollinger Band.

The EA also includes features such as stop loss, take profit, trailing stop loss, and trailing take profit. It calculates the stop loss and take profit levels based on the input parameters. It also has a profit target feature, where it closes all positions when the profit reaches a certain target.

Features:

  • Uses the Bollinger Bands indicator to generate trading signals
  • Supports stop loss and take profit levels
  • Trailing stop loss and trailing take profit features
  • Profit target feature to close all positions when a certain profit target is reached

Input Parameters:

  • LotSize: Initial lot size for trading
  • MaxDrawdown: Maximum allowed drawdown
  • StopLoss: Stop loss level in points
  • TakeProfit: Take profit level in points
  • TrailStopLoss: Trailing stop loss level in points
  • TrailTakeProfit: Trailing take profit level in points
  • BBPeriod: Bollinger Bands period
  • BBDeviation: Bollinger Bands deviation
  • BBTimeframe: Bollinger Bands timeframe
  • ProfitTarget: Profit target in account currency

Usage:

To use this EA, follow these steps:

  1. Include the necessary libraries at the beginning of your code.
  2. Define the input parameters based on your trading preferences.
  3. Initialize the expert advisor by setting the Bollinger Bands indicator parameters and calculating the initial lot size.
  4. Handle trading signals in the OnTick() function. Check for buy and sell signals based on the Bollinger Bands indicator. Place buy or sell orders with the calculated lot size, stop loss, and take profit levels.
  5. Modify the stop loss and take profit levels if trailing stop loss or trailing take profit conditions are met.
  6. Close all positions if the profit target is reached.
  7. Handle deinitialization in the OnDeinit() function. Close all open positions.

Please note that ForexRobotEasy is not the official developer of this product. We only provide a sample code that can work as described in this product. To find the official developer of this product, please refer to the Forex Robot Easy website.

For detailed reviews and trading results of this product, please visit the Forex Robot Easy website.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published