Thread: How to code?
View Single Post
  #1010 (permalink)  
Old 06-10-2008, 02:48 PM
payback payback is offline
Member
 
Join Date: May 2008
Posts: 31
payback is on a distinguished road
Quote:
Originally Posted by IN10TION View Post
need more code to fix this...
if you wish, publish your mq4
no i don't want to publish all but i think is a problem with the types match of variables i'll try to explain more

indicator1 e 2 are double right

so i have buyvaluecurrent = icustom(indicator1 etc etc);
buyvaluecurrent2 = icustom(indicator2 etc etc);
sellvaluecurrent = icustom(indicator1 etc etc); //doubles right?
trenendvup =icustom (indicator3 etc etc) ; //int
and so on

so buycondition= ((buyvaluecurrent !=0 && buyvaluecurrent2 !=0) && (trendenvup != Empty_Value);

this statment works only sometimes and also could be a problem, so my question is why? i want that buycondition returns 1 or 0 no matter of what type is bool or double
Reply With Quote