PDA

View Full Version : CCI on Array



Edakad
05-18-2015, 08:20 AM
Hello

Please check this code. It just calls the commodity channel index on array function with typical price.

When i check this on 1 minute chart, i am getting an error message, "an unexpected error occured", but on higher timeframes it works well

Tis happens on USD/CHF 1 minute chart, works on EUR/USD chart


Public Sub main()

x1 = CopyOpen(0, 1, CLNG(bars0), aryOpen)
x2 = CopyHigh(0,1,CLNG(bars0),aryHigh)
x3 = CopyLow(0,1,CLNG(bars0),aryLow)
x4 = CopyClose(0,1,CLNG(bars0),aryClose)


MedianPriceOnArray aryOpen, aryHigh, aryLow, aryClose, aryMedianPrice


CommodityChannelIndexOnArray aryMedianPrice, aryMedianPrice, aryMedianPrice, aryMedianPrice, CINT(5), aryCCIfo
CommodityChannelIndexOnArray aryMedianPrice, aryMedianPrice, aryMedianPrice, aryMedianPrice, CINT(10), aryCCI
CommodityChannelIndexOnArray aryOpen, aryHigh, aryLow, aryClose, CINT(20), aryCCIl






End Sub

Rawan-HS
05-19-2015, 07:24 AM
Hi sir ,

Can you tell me which version of Client Terminal do you use .

Edakad
05-25-2015, 11:04 AM
Hi

Sorry for the delay, but I got correct now, actually the error was with something else

Hassan-HS
07-12-2015, 11:23 AM
Ok, welcome :)