Help for a biginner

#1
hi every one,

can some one help me to make this code correctly please. i want to add a stop loss if the stock fell more than $0.20 and sell after 0.20 profil and i want to close the trade the end of the day even i didn't reached my objectif, thankyou.

myClose1 = ValueWhen(DayOfWeek() == 4, Close);
myClose2 = ValueWhen (DayOfWeek() == 3, Close) ;
//myClose3 = myClose1 > myClose2 ;
Cond1 = myClose1 > myClose2 ;
Cond2 = DayOfWeek()==2;
Cond3 = Open > Ref(Close,-1) + 0.10;

Buy = Cond1 AND Cond2 AND Cond3 ;
 
Last edited:

Similar threads