StopLoss, Position Management, etc
Posted: Aug 02 2022
Hey guys,
First post here. Hopefully you are able to help me.![Smile :)](./images/smilies/icon_smile.gif)
I've been coding in PL for a few weeks and got somewhat stuck on the topics below.
1. I see there is an "Interest Rate" field when setting the properties for signals. Is that similar to Funding Rate in future contracts?
2. Is there a way to set a stoploss to be at a specific price? Ie. I want the position to close when the price reaches 1.21 instead of when there is a $x loss.
3. Is there a way to partially close a position instead of the entire position?
4. Is there a way to get the position size? I tried GetPositionTotalCost, but wasn't able to make it work because of the account field (it returns null on a forex instrument).
5. How does it work to do an in sample and out of sample backtesting? Is there a place to set this up?
Thanks!
First post here. Hopefully you are able to help me.
![Smile :)](./images/smilies/icon_smile.gif)
I've been coding in PL for a few weeks and got somewhat stuck on the topics below.
1. I see there is an "Interest Rate" field when setting the properties for signals. Is that similar to Funding Rate in future contracts?
2. Is there a way to set a stoploss to be at a specific price? Ie. I want the position to close when the price reaches 1.21 instead of when there is a $x loss.
3. Is there a way to partially close a position instead of the entire position?
4. Is there a way to get the position size? I tried GetPositionTotalCost, but wasn't able to make it work because of the account field (it returns null on a forex instrument).
5. How does it work to do an in sample and out of sample backtesting? Is there a place to set this up?
Thanks!