PDA

View Full Version : Draw a candle



OST
12-22-2015, 10:10 AM
Hi,

Can we draw a custom indicator with candle instead of a line?

Rawan-HS
12-22-2015, 12:02 PM
Dear OST

No we cant' draw with candle style , we just can to draw with two style , volume and line style
check this code



Dim indKey,indkey1


Sub main()


Dim openarry()


CopyOpen 0,1, bars(0),openarry
indKey=AddCustomIndicator(0,openarry,1,true)
indkey1=AddCustomIndicator(0,openarry,1,true)
SetSeriesStyle 0,cstr(indKey),VOLUME_CHART
SetSeriesStyle 0,cstr(indKey1),LINE_CHART


End Sub