Hello Guys,
Here is my code
###########################
double ZigZag2[100];
double LastOne2[2];
int cc2=0;
int dd2=0;
void Zigzag2()
{
for(int Count=0;Count<=99;Count++)
{
if(cc2>1){break;}
ZigZag2[Count]=iCustom(NULL,0,"ZigZag",12,5,3,0,Count);
if (ZigZag2[Count]!=0)
{
LastOne2[cc2]=ZigZag2[Count];
cc2=cc2+1;
if (cc2==1) {dd2=Count+1;}
}
}
double ZigValue=LastOne2[0];
double ZigValue1=LastOne2[1];
checkCreateHorizontalLine(0, objectsName + "ZZHigh", 0, ZigValue, clrGray);
checkCreateHorizontalLine(0, objectsName + "ZZLow", 0, ZigValue1, clrGray);
}
######################################
Using above code i get last 2 swings value, but the value don't update themselfs....
any idea to change the code and get the latest 2 swings value?
Thanks in advance! i will share the secret setting of the zigzag if problem solved!
Here is my code
###########################
double ZigZag2[100];
double LastOne2[2];
int cc2=0;
int dd2=0;
void Zigzag2()
{
for(int Count=0;Count<=99;Count++)
{
if(cc2>1){break;}
ZigZag2[Count]=iCustom(NULL,0,"ZigZag",12,5,3,0,Count);
if (ZigZag2[Count]!=0)
{
LastOne2[cc2]=ZigZag2[Count];
cc2=cc2+1;
if (cc2==1) {dd2=Count+1;}
}
}
double ZigValue=LastOne2[0];
double ZigValue1=LastOne2[1];
checkCreateHorizontalLine(0, objectsName + "ZZHigh", 0, ZigValue, clrGray);
checkCreateHorizontalLine(0, objectsName + "ZZLow", 0, ZigValue1, clrGray);
}
######################################
Using above code i get last 2 swings value, but the value don't update themselfs....
any idea to change the code and get the latest 2 swings value?
Thanks in advance! i will share the secret setting of the zigzag if problem solved!
No one wants to be defeated~