Topic: Donchian Channel Cross
This indicator uses two donchian channels to give signals , it works fine Shift 2 exceeds Shift1, Shift2 have to be <shift1 for the indicator to work!!!!
Example of working code without Error Msg
IndParam.NumParam[2].Caption = "Shift 1";
IndParam.NumParam[2].Value = 1;
IndParam.NumParam[2].Min = 1;
IndParam.NumParam[2].Max = 3;
IndParam.NumParam[3].Caption = "Shift 2";
IndParam.NumParam[3].Value = 0;
IndParam.NumParam[3].Min = 0;
IndParam.NumParam[3].Max = 1;
I spent the whole day trying to code it but cannot find where is the bug to make it work perfect
wishing you all to find the idea useful and waiting for someone to help fix it