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 !=0 && SellValueCurrent2 !=0) || (TrendEnvDown != EMPTY_VALUE));
StopSell = ((BuyValueCurrent !=0 && 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