Forum

Loop not saving values to array

bool once= 0 ; double z[]; void OnTick () { //--- if (!once) { int j = 0 ; for ( int i= 0 ; i< 100 && j< 5 ; i++) { double y = iCustom ( Symbol (), PERIOD_CURRENT , "ZigZag" , 12 , 5 , 3 , 0 , i); if

How to code to identify swings?

Hello everyone Is there anyone that can direct me pages where I can read up on how to code to identify swings? It's easy for me to identify them, but the method I'm using visually is not consistent enough to translate it to the PC. I have broken my brain these past couple of days trying to figure