Hello to you all, I hope that someone here can help me with the following problem, because I don’t know how to code it. I trade dax futures in the 1 min frame. When my indicator gives the right signal, I buy 1 future long. If the index drops more than 30 point below my entry point I buy another one. If it drops more than 60 point below the first entry point I buy another one My TARGET pPROFIT is pointofpositionprice +14 pips. It allways reaches this target, but sometimes I first have a drawdown of 100 pips before it does so and sometimes it crushes through the 14 pips and keeps on climbing. So I would like to implement a trailingstop SET STOP pTRAILING 14 I tried different methods, but it doesn’t work. Below is what I have now. In attachment I try to explain what I mean. I appologise if I didn’t make myself clear. Many thanks in advance! All the best with your coding and trading!!! DEFPARAM CumulateOrders = true indicator1 = CALL "long DAX 1 Beste"[28,7,35,19](close) c2 = (indicator1 >= 2) if time>081000 and time<212500 AND ONMARKET = 0 then IF c2 THEN BUY 2 SHARES AT MARKET ENDIF endif if longonmarket and countofposition = 2 and positionprice - close > 30 then buy 1 shares at market endif if longonmarket and countofposition = 3 and positionprice - close > 50 then buy 1 shares at market endif if longonmarket and countofposition = 4 and positionprice - close > 100 then buy 1 shares at market endif SET TARGET pPROFIT +14