NexusFi: Find Your Edge


Home Menu

 





{Exception}Floating-Point division by zero, signal only.


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,964 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 RickW 
Duncan, B.C.
 
Experience: Intermediate
Platform: TS,MC
Trading: CL,TF
Posts: 27 since Jul 2010
Thanks Given: 97
Thanks Received: 3

I have a function that works fine in multible indicators but as soon as I use it in a strategy I get a"Floating Point Division by Zero" error. All divisions are incased in Iff statements and the code is flawless with indicators. Hoping someone may have some other possibility that I could look into. Thanks in advance.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to distinguish between trending and mean reversion
The Elite Circle
Has anyone taken The Mentor Program from The Trading Gam …
Trading Reviews and Vendors
Cycle Through Ninjatrader Open Windows
NinjaTrader
Creating global variables for Ninjatrader
Traders Hideout
Multi-Data Strategy Questions
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Vinny E-Mini & Algobox Review TRADE ROOM
8 thanks
Futures spread trading grains education sources?
6 thanks
Just another trading journal: PA, Wyckoff & Trends
3 thanks
Wheres the videos?
3 thanks
Blue wave trading review
2 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,441 since Apr 2013
Thanks Given: 491
Thanks Received: 1,634


RickW,

there probably is at least one division at your code where the divisor is zero at one moment (could be at the very first calculation). Otherwise this error shouldn't come up.
What exactly do you check with your IFF statement?

You might have to block parts of your code or add print statements (to see where the calculation stops) in order to isolate where the problem is coming from. This will make it easier to find and fix.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on September 22, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Sitemap - Downloads - Top
no new posts