Originally Posted by
;
Hallo, je kunt ZigValue en ZigValue1 vergelijken. als ZigValuegt; ZigValue1 dan uptrend.if ZigValuelt; ZigValue1 dan downtrend. verwachten kan je helpen. code: dubbel ZigZag [100]; dubbele LastOne [2]; int cc = 0; int dd = 0; for (int Count = 0; Countlt; = 99; Count ) {if (ccgt; 1) {break;} ZigZag [Count] = iCustom (NULL, 0, ZigZag, Depth, Deviation, Backstep, 0, Count); if (ZigZag [Count]! = 0) {LastOne [cc] = ZigZag [Count]; cc = cc 1; if (cc = 1) {dd = Count 1;}}} double ZigValue = LastOne [0]; dubbele ZigValue1 = LastOne [1];