I have problem with programing two hooks on CCI.
Condition for long signal: CCI made a hook and an another hook (in next 2-8bars) is higher then first
I want to change period of CCI and lenght two hooks.
Hooks means that // Condition set 1
if (CCI(CCI_short)[2] > CCI(CCI_short)[1]
&& CCI(CCI_short)[0] > CCI(CCI_short)[1]
&& CCI(CCI_long)[2] > CCI(CCI_long)[1]
&& CCI(CCI_long)[0] > CCI(CCI_long)[1])
Please please, help me.


Comment