Hi,
There’s a CCI divergence indicator that shows a ‘bar’ when there is divergence.
Can this same ‘divergence bar’ reflect on a normal CCI (20) indictor as a red/ green ‘dot’ or up/ down arrow?
Regards,
Segie
The below code will plot CCI divergence directly on the CCI curve:
a = CCI[20](typicalPrice)
b = DivergenceCCI[20,-100,100,20]
if b<0 then
//drawpoint(barindex,a,3)
drawtext("●",barindex,a,dialog,bold,20) coloured(255,0,0)
elsif b>0 then
//drawpoint(barindex,a,3)
drawtext("●",barindex,a,dialog,bold,20) coloured(0,255,0)
endif
return a,b
Receiving syntax error on line 2. On the ‘commas’
The above code works only with PRT v11, what version are you using?
There’s a CCI divergence indicator that shows a ‘bar’ when there is divergence.
Ok, so you are obviously using a custom indicator, but how to know which one? Could you guide me please?
Looking to combine the standard CCI and CCI divergence indicators found under “Indicators and Trading Systems” on the 10.3 platform
Ok, so the above code is using the default CCI divergence indicator available in the platform, but with a specific instruction introduced in PRT v11.