Tagging differnet exits?
- This topic has 2 replies, 2 voices, and was last updated 2 weeks ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
Forums › ProRealTime English forum › ProOrder support › Tagging differnet exits?
Is ther a way to name/tagg different exits inside one stratergy?
I have a stratergy i been working on for a few months and it now have 4-5 different exits for longs and the same for shorts, so when i backtesting its getting hard to find out what exit sold at what point.
I know about LongTriggered/ShortTriggered and use them alot, but it would be amazing with a StopTriggered and TraillingStopTriggered too.
Also a way to be abel to see if exit1, exit2 or exit3 was triggered.
Think i was trying with the Print function some time ago, but cant make it work.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
If cSell1 then Sell x1 Shares at Market // Or just Sell at Market. GraphOnPrice Close as "Exit 1" Coloured("green") endif If cSell2 then Sell x2 Shares at Market // Or just Sell at Market. GraphOnPrice Close as "Exit 2" Coloured("yellow") endif If cSell3 then Sell x3 Shares at Market // Or just Sell at Market. GraphOnPrice Close as "Exit 1" Coloured("orange") endif |
That should do it. Watch for any of the coloured lines to change (vertical) position.
Have fun !
Peter