Forum

Error : zero divide : Why ?

Hello I have a pb that i can't solve : double ab = iMA ( "EURUSD" , 0 , 1 , 0 , MODE_SMA , PRICE_CLOSE ,pos); double bc = iMA ( "USDCHF" , 0 , 1 , 0 , MODE_SMA , PRICE_CLOSE ,pos); double ca = 1 /(ab*bc); ab is correct (i can see it in a buffer), bc is correct too but 1/(ab*ac) return an error

A loop to save price an indicators values

Hello I Use this code to save price and CCI value and ASI value. The saved file name contain the indicators period. I save a CCI(14) but i would like to save CCI(15) in an other file, CCI(16) in an other file ... Can you help me please ? #property copyright "Copyright © 2013 Trading Attitude"