@Safeer992
One solution is to declare an integer variable which will be initiated with a value of 0(=no position); give it a value of -1 when a short(sell) position is opened; give it a value of 1 when a long(buy) position is opened.
Add a condition stating : sell if variable = 0 or 1 ; buy if variable = 0 or -1.
This being said, be aware that these kind of "strategies" are smoke and mirrors, will make you loose money. You need inquiring seriously about it.
on tick, once per second, orange draw button red, yellow draw button yellow, for milli seconds you will need to find custom code, if you don't want the drawing of button to change state from on to off, you will need custom code.
@l-andorrà so i want price to go up 190 pips and bring my sl tp190 pips are price continue to go up the as it hits 300 pips i want it too bring my sl to 250 pips