Hello Traders
Need a little help with coding.
I want to “lock a profit”
My idea is to insert a trailing stop-loss if the position gained a profit of 100 in value
Is there a way to do so?
Thanks for your help.
A.
Hi algotrader,
I’m new to prorealtime but I hope this snippet does the trick. I hope I understood your request:
PositionProfit = PositionPerf(0) * TradePrice //Depends on whether the “100” is in the units of the instrument purchased…
If PositionProfit >= 100 Then
Set Stop %Trailing 1
End if
Cheers, hope I’m correct…
Hi there. I discovered this ProOrder AutoTrading only yesterday and is motivated to do it as well. I write to you as I am also from SA and just need to know if this system is successful, and what kind of return one can expect. If you have any advice for me, please be so kind to drop me a mail: conradieko@gmail.com
It will be appreciated.
Regards
Jakes