Pivot= (DHigh(1) + DLow(1) + Dclose(1))/3 Res1 = 2*((DHigh(1) + DLow(1) + Dclose(1))/3) - DLow(1) if not onmarket and close crosses over pivot then buy 1 contract at market sl=low sell at sl stop endif if longonmarket then sell at sl stop endif if not onmarket and close crosses over pivot then buy 1 contract at market res1= 2*((DHigh(1) + DLow(1) + Dclose(1))/3) - DLow(1) sell at res1 stop endif if longonmarket then sell at res1 stop endif Hello, I would like buy if ‘close crosses over pivot’ and sell ‘if the close hit the resistance 1’ I use the ‘low[1]’ of entrybar as stoploss Who can help me? How can i combine it?