SetOption("InitialEquity",1000000);
SetOption("AccountMargin",1);
POS= 16;
List=IIf(InWatchListName("List 1")==1,1,IIf(InWatchListName("List 3")==1,2,IIf(InWatchListName("List 2")==1,1,00)));
Buy= (exittype2==0 and C > MA(C,20 )) OR (exittype2==1 AND C > MA(C,200)) ;
exittype1=C < MA(C,20);
exittype2= C < Ref(LLV(C,20),-1);
Sell=exittype1 OR exittype2
if trade is exited by exittype2 i want it to be entered on another condition
how can i achieve this