Edit Your Comment
How to code Zigzag whether pointing UP or DOWN
เป็นสมาชิกตั้งแต่ May 02, 2012
15 โพสต์
Jun 22, 2014 at 14:49
เป็นสมาชิกตั้งแต่ May 02, 2012
15 โพสต์
I've found from other forum with the below script to identify whether the Zigzag pointing UP or DOWN. However, the below script has discrepancy with the original Zigzag indi. What I would like to have is to identify the current direction of the original Zigzag indi to execute Buy or Sell & close immediately when the opposite direction of Zigzag appear.
Would greatly appreciate if anyone could share the script.
Thanks and best regards.
int n, i;
double zag, zig;
i=0;
while(n<2)
{
if(zig>0) zag=zig;
zig=iCustom(NULL, 0, "ZigZag", 0, i);
if(zig>0) n+=1;
i++;
}
RESULT
-----------
if(zag
Would greatly appreciate if anyone could share the script.
Thanks and best regards.
int n, i;
double zag, zig;
i=0;
while(n<2)
{
if(zig>0) zag=zig;
zig=iCustom(NULL, 0, "ZigZag", 0, i);
if(zig>0) n+=1;
i++;
}
RESULT
-----------
if(zag

*การใช้งานเชิงพาณิชย์และสแปมจะไม่ได้รับการยอมรับ และอาจส่งผลให้บัญชีถูกยกเลิก
เคล็ดลับ: การโพสต์รูปภาพ/youtube url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ