Multiple entries with %profit out
Forums › ProRealTime English forum › ProOrder support › Multiple entries with %profit out
- This topic has 7 replies, 2 voices, and was last updated 8 years ago by Nicolas.
-
-
09/29/2016 at 9:06 PM #13936
Hi,
I am struggling to manage to code for an average %profit out with multiple entries. At the moment i am using a code that needs position size and percentage at the close of bar to get out. In reverse the stop %loss works good for all positions but the multiple entries are only scaled out individualy. I see the PRT platform backtests the same as well, I am really sratchting my head over this.
Thanks
Wildbill09/29/2016 at 9:47 PM #1394309/29/2016 at 10:03 PM #1394509/30/2016 at 7:31 AM #13958You can calculate yourself what percentage the price gain or loss in comparison with the average price of orders using the POSITIONPRICE instruction.
09/30/2016 at 9:51 AM #13964I am currently using the position price instruction to exit at all positions at a defined %. As the SET TARGET %PROFIT syntax will only exit the strategy in true % inside the bar with a single position. The use of positionprice only applies to close of bar and positions may not be exited even if the % threshold inside the bar, this because the close maybe different to the high or low of the bar. So maybe the question i should be asking is, can multiple positions be exited insde the bar in any form, ie. pips/£/%
Thanks
09/30/2016 at 12:39 PM #13972Yes, this behaviour is normal because of the not ‘inside bar’ look of Probacktest. The best you can do is to find the correct price level of the percentage of gain you’d like to get out of trades and then set a pending STOP order to close them all at once.
Of course, because of the same behaviour of the PRT backtest engine, your STOP order will only be tested and placed once per bar.
09/30/2016 at 12:57 PM #1397509/30/2016 at 1:25 PM #13978 -
AuthorPosts
Find exclusive trading pro-tools on