Support Board
Date/Time: Tue, 11 Feb 2025 08:14:02 +0000
[Programming Help] - How to check whether a current live trade position has been scale in
View Count: 835
[2020-08-31 15:04:45] |
User383849 - Posts: 23 |
Hi! How to check whether a current live trade position has been scale in/added on? Example, my default contract size is 10, if I added another 10 contracts to my existing position, I want to run my next routine. Pls advice what's the correct function to use. Thank you! SierraRocks |
[2020-08-31 17:20:26] |
Sawtooth - Posts: 4173 |
Which study are you using to autotrade?
|
[2020-08-31 17:46:33] |
User383849 - Posts: 23 |
I'm using my own custom study. I just need the right function to add to my if-else routine. Currently I could program it to work by using a fixed contract size. Eg. Assuming I trade 10 contracts each time and If current position is 20 contracts then it goes to scaled_in routine. I just need a better function so I could detect scale in/added on for any contract size. |
[2020-08-31 20:48:26] |
User383849 - Posts: 23 |
Found the function. It's s_SCPositionData :: PositionQuantity
|
To post a message in this thread, you need to log in with your Sierra Chart account: