Thread: How to code?
View Single Post
  #1006 (permalink)  
Old 06-10-2008, 01:39 PM
payback payback is offline
Member
 
Join Date: May 2008
Posts: 31
payback is on a distinguished road
Unhappy boolean match error

Hi all, i have this error and i don't understand how to figure out, i think it's a problem of matching different types of variables

here is the snippet of the code


double
BuyCondition,
SellCondition,
StopLong,
StopSell;

the indicators are

double indicator1,
indicator2
indicator 3; (but is int)

so i want those conditions
PHP Code:
StopLong  = ((SellValueCurrent !=&& SellValueCurrent2 !=0) || (TrendEnvDown != EMPTY_VALUE));
   
StopSell  = ((BuyValueCurrent !=&& BuyValueCurrent2 !=0) || (TrendEnvUp != EMPTY_VALUE)); 
so why sometimes i don't have 0 when i need 1 and sometimes i have both1 when or one of them should bhe 1? this now for me make no sense at all why is wrong? please help me!!!


p.s. sellvalue and buyvalue are double
Reply With Quote