hi guys,
I have a simple strategy that trails the position entered into with a trailing stop. instead of activating as soon as the price moves 1 pip in favour, i want it to start once the trade is onside by 10 pips, so the step is 10. then once at breakeven I want the stop to trail the price by a step of 5 points, is this possible? I am a newbie but cant find anything that illustrates this on the forums at present.
currently all i have in my code at present for my stops and targets is below:
// Stops
SET STOP pTRAILING 10
// Targets
SET TARGET pPROFIT 35
>> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
I suggest not to use the built-in SET STOP pTRAILING instruction, it’s not possible to set a breakeven and the step is 1 and cannot be changed.
You’d rather resort to coded trailing stop snippet than can be found throughout this forum and mainly here https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/.
If you have a strategy but don’t know how to add it, then post your code and ask… someone will help you asap.