NexusFi: Find Your Edge


Home Menu

 





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


Discussion in EasyLanguage Programming

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




 
Search this Thread

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

  #1 (permalink)
 RickW 
Duncan, B.C.
 
Experience: Intermediate
Platform: TS,MC
Trading: CL,TF
Posts: 27 since Jul 2010
Thanks Given: 96
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?
Futures True Range Report
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
ZombieSqueeze
Platforms and Indicators
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623


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 - Downloads - Top
no new posts