ZigZag.mq4 code New comment Arshed Qureshi 2009.03.26 12:57 code from standard ZigZagHi this code is from standard "ZigZag.mq4" "if (counted_bars==0 && downloadhistory) // history was downloaded" counted_bars==0 : checking if the value is equal to zero........ its ok. downloadhistory : there is no condition check why ??? please clear this Thanks. How to code? [ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. MT4 Advise- checking next few candles after 2 MAs cross over blogzr3 2009.03.26 17:05 #1 downloadhistory is a boolean, so the condition check is equivalent to: if (counted_bars==0 && downloadhistory==true) // history was downloaded Arshed Qureshi 2009.03.27 19:44 #2 blogzr3: downloadhistory is a boolean, so the condition check is equivalent to: if (counted_bars==0 && downloadhistory==true) // history was downloaded Thanks for reply then its mean if we check boolean without "true" "false" its "true" by default ? blogzr3 2009.03.28 03:04 #3 Yes. New comment
this code is from standard "ZigZag.mq4"
"if (counted_bars==0 && downloadhistory) // history was downloaded"
counted_bars==0 : checking if the value is equal to zero........ its ok.
downloadhistory : there is no condition check why ??? please clear this
Thanks.