Thanks for your reply and points and request.
From my test of your script, please see post #10 video from timestamps 1min12seconds to 1min34seconds:
Then when GC Price moves up some ticks back up, the Target order does not move back up.
That's what I wanted to mean by locking the Stop movement. As the Target order is only allowed to move in one direction— not 'retrace' the terrain it's already made.
From 11min08seconds to 11min14seconds,
An order is filled at 1818.3 with Stop loss initially placed at 1815.3 (11min11seconds).
Then a surge in GC price from 1818.3 to 1818.5 occurs and the Stop immediately moves up to 1816.9 (11min14seconds).
Then on GC movement couple ticks back down form the surge to 1818.4, between 11min14seconds and 11min16seconds, you see the Stop loss remains at 1816.9.
Then again GC moves back down to 1818.2 (11min36seconds). But as you can see The Stop Loss remains locked at 1816.9.
Then later at 12min48seconds GC Price is at 1818.7, and the stop Loss is still at 1816.9.
Then at 15min40seconds GC surges back up to 1819.1. But the Stop remains at 1816.9 (contrary to what I need— for it to move back up again as the GC Price does so).
Then at 18min31seconds and at 24min02seconds GC gets below the entry price and the Target starts again moving down.
Somehow your script does lock the StopLoss and Target to only go in one direction (I don't understand how it does so).
The Stop loss movement can only go up (for long trades).
The Target movement can only go down (for long trades).
That's what I want to achieve for the 1st part of what I need.
1st part of what I need:
How does it locks the StopLoss to the fixed 1816.9? while the Target still moves down after Entry Price is breached down the subsequent times (at 18min31seconds and at 24min02seconds).
Please let me know if that still is not clear enough. I'll improve further if need be.
Comment