molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming
http://www.molanis.com/forum/

Difference between Bands on TIB
http://www.molanis.com/forum/viewtopic.php?f=9&t=5927
Page 1 of 1

Author:  Abodimo [ Thu Jun 27, 2013 8:16 am ]
Post subject:  Difference between Bands on TIB

i want to creat custom indicator on the TIB that based on the difference in pips between upper and lower bollinger bands for example: upper band - lower band) then i want to import this to SB and put a condition if the difference is higher than or equal 10 pips on usdyen pair for example.
so pls advice how can i create this equation on tib??
Thanks

Author:  molanisfx [ Thu Jun 27, 2013 6:00 pm ]
Post subject:  Re: Difference between Bands on TIB

In the TIB use the indicator option to add indicator, select the bollinger one and:
Use mode = Mode_upper for the upper band, and mode_lower for the lower band.
Build an equation like iBands using mode_upper- iBands using mode_lower, if you only want the positive value you may want to add MathAbs as in MathAbs(iBands using mode_upper- iBands using mode_lower) - this will show the difference in price. To get pips value you need to divide accordingly i.e. 0.1234 is 12 pips for JPY pairs but 1234 for EURUSD
After that you go to the Strategy Builder and import the indicator using a TA or TA+ icon (use custom indicator option)

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/