{Exception}Floating-Point division by zero, signal only. - EasyLanguage Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

{Exception}Floating-Point division by zero, signal only.
Started:September 21st, 2015 (06:03 PM) by RickW Views / Replies:290 / 2
Last Reply:September 22nd, 2015 (03:13 AM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

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

Old September 21st, 2015, 06:03 PM   #1 (permalink)
Elite Member
Duncan, B.C.
Futures Experience: Intermediate
Platform: TS,MC
Favorite Futures: CL,TF
Posts: 24 since Jul 2010
Thanks: 90 given, 0 received

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

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.

Reply With Quote

Old September 21st, 2015, 06:03 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old September 22nd, 2015, 03:13 AM   #3 (permalink)
 Vendor: abctradinggroup.com 
Hamburg Germany
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
Posts: 1,107 since Apr 2013
Thanks: 188 given, 624 received


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.



Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > {Exception}Floating-Point division by zero, signal only.

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating point invalid operation? hughesfleming MultiCharts 2 September 16th, 2014 05:29 AM
Exception Handling?? tornadoatc NinjaTrader Programming 2 April 11th, 2013 03:10 PM
New Regulations in the New Jersey Division of Motor Vehicle's kbit Jokes 1 November 14th, 2011 12:39 AM
No Default constructor. Exception: invocation grinder NinjaTrader 1 April 5th, 2011 11:31 PM
Division by Zero, how to debug arjfca EasyLanguage Programming 6 September 30th, 2010 10:04 AM

All times are GMT -4. The time now is 09:59 AM.

Copyright © 2016 by futures.io. 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.
no new posts

Page generated 2016-10-25 in 0.06 seconds with 19 queries on phoenix via your IP