Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Rejoignez notre page de fans
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
- Publié par:
- Mohammed Abdulwadud Soubra
- Vues:
- 11382
- Note:
- Publié:
- 2017.03.07 17:01
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
Bollinger Bands as Support & Resistance Using Pending Orders:
- It will use the upper BB edge as Sell pending order & lower BB edge to place the Buy pending order.
- The central SMA line of the BB will be used to close the opened positions as enough.
It is not profitable, it is just an example for coding Forex robots.
It is trading only on time frame 15 minutes as you can see in the code below:
//+------------------------------------------------------------------+ //| expert OnTick function | //+------------------------------------------------------------------+ void OnTick() { BB_UPPER = iBands(NULL ,PERIOD_M15 ,BB_period ,BB_dev ,0 ,PRICE_CLOSE ,MODE_UPPER ,0); BB_SMA = iBands(NULL ,PERIOD_M15 ,BB_period ,BB_dev ,0 ,PRICE_CLOSE ,MODE_SMA ,0); BB_LOWER = iBands(NULL ,PERIOD_M15 ,BB_period ,BB_dev ,0 ,PRICE_CLOSE ,MODE_LOWER ,0); ............ . . . }
You can change the period above from PERIOD_M15 to PERIOD_CURRENT or by using the ENUM_TIMEFRAMES
Recommendations
- This example is only for coders who are interested in automated trading source codes.
- Using this example in real account is not recommended.
- Take care!
![MT5 to MT4 Set File Converter](https://c.mql5.com/i/code/script.png)
Converts .set files from MT5 format to MT4 format.
![Vidya zone](https://c.mql5.com/i/code/indicator.png)
Vidya zone using 3 prices for calculation.
![ADXm (vhf adaptive)](https://c.mql5.com/i/code/indicator.png)
ADXm (vertical/horizontal filter adaptive).
![Dsl - DMI oscillator](https://c.mql5.com/i/code/indicator.png)
DSL - DMI oscillator