// Sell Half then All in Bull Market
if (Close[0] < EMA(EMA1st)[0]
&& EMA50vs200(200, 50).Plot0[0] >= Ratio50vs200h
&& DM(7).DiPlus[0] < DM(7).DiMinus[0]
&& RSI(12, 1)[0] < 50)
{
ExitLong("Enter Long2");
}
elseif (Close[0] < EMA(EMA2nd)[0]
&& EMA50vs200(200, 50).Plot0[0] >= Ratio50vs200h
&& DM(7).DiPlus[0] < DM(7).DiMinus[0]
&& RSI(12, 1)[0] < 50)
{
ExitLong("","");
}
Entrys are ok and Exits of Long2 are ok, but I cannot get the script to close out the remaining position, when on the chart, all requirements have been fulfilled. Please let me know what I missed if you can. Thanks

Comment