Wave59 Bulletin Board

 
 
  
 Search
  
 Posted Today
  
 Most Active
  
 Help   
 » Home »   » Wave59 Forums »   » Wave59 Scripts »   » Indicator ERROR


 View Previous Topic
View Next Topic 

   Indicator ERROR
P:  4/6/2012 4:47:33 AM
Anderton

Member

Total Posts: 12
Last Post: 3/9/2013
Member Since: 2/2/2010


I have some indicators that give me the error "Attempted to divid by 0", can some some help me solve it.

Thanks in advance

 


Goog Luck Trader

Revisions : 0   |    Posted:  4/6/2012 4:47:33 AM   |   IP:  Recorded    |    Report this post


 There are 3 replies to this message.  There are 3 replies on this page.

P: 4/6/2012 6:44:03 AM
David

Member

Total Posts: 185
Last Post: 11/10/2012
Member Since: 8/13/2008

Anderton

if you are talking about a canned indicator then that probable shouldnt happen atleast to the point where you cant keep wave from blowing up then and you should submit a help ticket.  if it is your own custome script a divide by zero error is exactly that,,as your script is being run some where in there you are dividing a variable which equals zero..boom it will blow up..

 

try instead of dividing use the multiplication   if you want half then multiply by .5 quarter .25  ect....or in your code you can write a line saying if some thing equals zero then make that some thing equal to 1.

that will keep you clear of that error which is user defined...

 

if you need any help post a code snipet and we will get on it for you.

 

best

WORK INTERNALLY

David

Revisions : 0   |    Posted:  4/6/2012 6:44:03 AM    |    IP:  Recorded    |    Report this post
P: 4/6/2012 2:09:15 PM
Anderton

Member

Total Posts: 12
Last Post: 3/9/2013
Member Since: 2/2/2010

Thanks alot David for the reply,

Is it possible for you to message me the code that will turn the 0 values in to ones, thank.

Goog Luck Trader

Revisions : 0   |    Posted:  4/6/2012 2:09:15 PM    |    IP:  Recorded    |    Report this post
P: 4/6/2012 3:44:49 PM
David

Member

Total Posts: 185
Last Post: 11/10/2012
Member Since: 8/13/2008

Anderton:



with out really knowing what you are doing or trying to do it is a little difficult..



try this  lets say you are dividing the variable called Anderton



 if (Anderton <1)  {



     Anderton = 1;



 }

 

thats all you have to do...and that will work again with out knowing exactly what you are trying to do then it is really difficult to give you an exact help.

best







WORK INTERNALLY

David

Revisions : 0   |    Posted:  4/6/2012 3:44:49 PM    |    IP:  Recorded    |    Report this post

 Previous Page
Next Page 

Jump to:



Contact Us  |  Back Home  |  Privacy Statement

Ideal BB Version: 0.1.5.4bMessage forum software powered by  the Ideal BB