Join our fan page
Bollinger - expert for MetaTrader 5
- Views:
- 10306
- Rating:
- Published:
- 2017.05.29 13:58
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The strategy is based on the iBands indicator.
When the price breaks through the channel, a position is opened in the direction opposite to the price movement. If the price breaks through the upper channel border upwards, a Sell position is opened. If lower border is broken downwards, a Buy position is opened.
Fig. 1. Trading results for 2016-2017.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/17992
Trades based on the previous candlestick.
ListPositionsA list of all positions. An example of working with CPositionInfo.
The script removes from the current chart all objects of the user selected type
ToClearObjectsByTypeThe script removes all objects of the type selected by the trader in input parameters from all charts of the client terminal.