Thread: How to code?
View Single Post
  #1007 (permalink)  
Old 06-10-2008, 01:50 PM
IN10TION's Avatar
IN10TION IN10TION is online now
Senior Member
 
Join Date: Mar 2007
Posts: 649
Blog Entries: 1
IN10TION is on a distinguished road
need more code to fix this...
if you wish, publish your mq4

Quote:
Originally Posted by payback View Post
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