if ((Close[2] > Open[2]) && (Close[1] < Open[1])}
{
if(High[2] > iHigh(NULL, 0, iHighest(NULL,0,MODE_HIGH,50,2))) {
draw_purple_horizontal_line(High[2]);
}
}
if ((Close[1] > Open[1])&&(Close[1] > purple_horizontal_line)) {
openSellTrade();
}