SL or TP Auto Adjustment
Forums › ProRealTime English forum › ProRealTime platform support › SL or TP Auto Adjustment
- This topic has 8 replies, 3 voices, and was last updated 5 years ago by Nicolas.
Tagged: trailing stop
-
-
02/11/2019 at 3:53 PM #91077
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?
02/11/2019 at 4:16 PM #91079You can:
- use HIGHEST and LOWEST to find multiple common price level within a time range (number of previous candles)
- use math to round numbers to detect how close you are to figures of your interest (say 1.0100, 1.0200, 1.0300,…)
- use this indicator (or embed it in your strategy) https://www.prorealcode.com/prorealtime-indicators/sweet-spots-numbers/
02/11/2019 at 5:56 PM #91089I 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.
02/11/2019 at 6:09 PM #91090You can add Nicolas’code to your strategy https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/.
02/17/2019 at 6:27 AM #91556let’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?
123456789defparam CUMULATEORDERS=falseV1= 0.1121 //price//V2= 1 //PIPS//c1=low crosses over v1if longonmarket and c1 thenSET STOP PLOSS v2endif02/17/2019 at 8:25 AM #91561ProOrder cannot deal with manually opened trades.
ProOrder will stop a strategy if a trade that has been opened automatically is later modified/closed manually.
02/18/2019 at 7:16 AM #91596so, no other method than pro order to fulfill my purpose?
02/18/2019 at 8:29 AM #91600It can’t be done.
02/18/2019 at 11:04 AM #91616You can add an automatic trailing stop to a manual order:
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on