Williasmsmd19
New member
def sum1 = Condition1 + Condition2 + Condition4 + Condition5;
def trigger1 = if sum1 >= (4) then 1 else 0;
def sum2 = Condition6 + Condition7 + Condition9 + Condition10;
def trigger2 = if sum2 <= (1) then 1 else 0;
def Buy = condition3 and trigger1;
plot a = Buy;
def Sell = condition8 and trigger2;
plot b = Sell;
i would not call myself a professional programmer by any means, im more of a cut and paste programmer just picking up little things as a go, but iam stumped. This is simply not picking up target points and i can not find any examples to see where its gone wrong. If anyone is able to see what part of the end code is incomplete or able to point me in the direction of being able to fix it i would appreciate the help
def trigger1 = if sum1 >= (4) then 1 else 0;
def sum2 = Condition6 + Condition7 + Condition9 + Condition10;
def trigger2 = if sum2 <= (1) then 1 else 0;
def Buy = condition3 and trigger1;
plot a = Buy;
def Sell = condition8 and trigger2;
plot b = Sell;
i would not call myself a professional programmer by any means, im more of a cut and paste programmer just picking up little things as a go, but iam stumped. This is simply not picking up target points and i can not find any examples to see where its gone wrong. If anyone is able to see what part of the end code is incomplete or able to point me in the direction of being able to fix it i would appreciate the help