Hi
is there any feature in PRT to define price levels to change and adjust SL or TP automatically when in market? Should it be coded in auto-trading? How?
I am sorry if i may not conveyed my question properly. Actually, I want an automated way to adjust Stop Loss level based on changing price. for example, if price reached certain level then put stop loss at a new defined level.
let’s say we are entered Long on market at price 0.1111 and put Stop Loss at 0.1100 manually. I wish to adjust SL to the price 0.1110 when price reached to 0.1121 automatically.
could below code be applied by auto trading for my purpose?
defparam CUMULATEORDERS=false
V1= 0.1121 //price//
V2= 1 //PIPS//
c1=low crosses over v1
if longonmarket and c1 then
SET STOP PLOSS v2
endif
ProOrder cannot deal with manually opened trades.
ProOrder will stop a strategy if a trade that has been opened automatically is later modified/closed manually.
so, no other method than pro order to fulfill my purpose?
You can add an automatic trailing stop to a manual order:
[youtube]https://youtu.be/jmKZYsy3MQw?t=134[/youtube]