Edit Your Comment
How to resolve "Zero Divide"
तबसे मेंबर है May 02, 2012
15 पोस्टों
Jun 06, 2014 at 07:42
तबसे मेंबर है May 02, 2012
15 पोस्टों
Hi guys,
Anyone able to advise on how to resolve this coding to avoid "Zero Divide" error :-
double upbar_upwickvol=((High[a]-Close[a])/avgvol);
double upbar_lowerwickvol=((Open[a]-Low[a])/avgvol);
double upbar_realbodyvol=((Close[a]-Open[a])/avgvol);
Thanking you in advance for the kind assistance.
Best regards.
Anyone able to advise on how to resolve this coding to avoid "Zero Divide" error :-
double upbar_upwickvol=((High[a]-Close[a])/avgvol);
double upbar_lowerwickvol=((Open[a]-Low[a])/avgvol);
double upbar_realbodyvol=((Close[a]-Open[a])/avgvol);
Thanking you in advance for the kind assistance.
Best regards.

forex_trader_25447
तबसे मेंबर है Dec 21, 2010
127 पोस्टों
Jun 06, 2014 at 09:44
तबसे मेंबर है Dec 21, 2010
127 पोस्टों
Make like this :
Mine pleasure.
double upbar_upwickvol=0.0; // Here 0.0 can be ANY number !!!
double upbar_lowerwickvol=0.0;
double upbar_realbodyvol=0.0;
if ( avgvol!=0.0 )
{ upbar_upwickvol =((High[a]-Close[a])/avgvol);
upbar_lowerwickvol=((Open[a]-Low[a])/avgvol);
upbar_realbodyvol=((Close[a]-Open[a])/avgvol);
}
Mine pleasure.

forex_trader_28881
तबसे मेंबर है Feb 07, 2011
691 पोस्टों
Jun 06, 2014 at 09:50
तबसे मेंबर है Feb 07, 2011
691 पोस्टों
@StoneHeart
The High Close Open Low could also be 0, which means not enough history or the data for the pair is not there, iow's the pair is not on this broker.
So @EAcomparison
So open all the pairs you're trying to trade, and make sure you got enough data on the time frame you're trying to trade. Simply drag your charts back a bit.
The High Close Open Low could also be 0, which means not enough history or the data for the pair is not there, iow's the pair is not on this broker.
So @EAcomparison
So open all the pairs you're trying to trade, and make sure you got enough data on the time frame you're trying to trade. Simply drag your charts back a bit.
तबसे मेंबर है May 02, 2012
15 पोस्टों
Jun 06, 2014 at 12:41
तबसे मेंबर है May 02, 2012
15 पोस्टों
StoneHeart posted:
Make like this :
double upbar_upwickvol=0.0; // Here 0.0 can be ANY number !!!
double upbar_lowerwickvol=0.0;
double upbar_realbodyvol=0.0;
if ( avgvol!=0.0 )
{ upbar_upwickvol =((High[a]-Close[a])/avgvol);
upbar_lowerwickvol=((Open[a]-Low[a])/avgvol);
upbar_realbodyvol=((Close[a]-Open[a])/avgvol);
}
Mine pleasure.
STONEHEART, THANK YOU SO MUCH FOR YOUR SOLUTION & IT WORKS PERFECTLY !!!
तबसे मेंबर है May 02, 2012
15 पोस्टों
Jun 06, 2014 at 12:41
तबसे मेंबर है May 02, 2012
15 पोस्टों
TheCyclist posted:
@StoneHeart
The High Close Open Low could also be 0, which means not enough history or the data for the pair is not there, iow's the pair is not on this broker.
So @EAcomparison
So open all the pairs you're trying to trade, and make sure you got enough data on the time frame you're trying to trade. Simply drag your charts back a bit.
TheCyclist, thanks for your advise :)
तबसे मेंबर है Jun 09, 2011
183 पोस्टों
Jun 18, 2014 at 07:33
तबसे मेंबर है Jun 09, 2011
183 पोस्टों
Thanks for sharing Stone
http://www.freeforexrebates .info

*व्यवसायिक इस्तेमाल और स्पैम को ब्रदाश नहीं किया जाएगा, और इसका परिणाम खाता को बन्द करना भी हो सकता है.
टिप: किसी चित्र या यूट्यूब या URL को पोस्ट करने से वे अपने आप आपके पोस्ट में आजाएगा!
टिप: @ चिन्ह को टाइप करें उपभोगता के नाम को अपने आप करने के लिए जो इस चर्चा में भाग ले रहा है.