Support Board
Date/Time: Mon, 10 Mar 2025 20:42:36 +0000
[User Discussion] - POSITION QUANTITY - SC REPORTS ERROR ON LIVE TRADING
View Count: 477
[2022-04-07 00:06:19] |
rkarrow - Posts: 9 |
Simple program using Spreadsheet system for Trading. In simulated trading, the program works perfectly. I'm using the study "Trading Position Quantity". I had previously used J8 in the spreadsheet for position quantity but it had an error in the program that reset itself to zero when there would be an active position (forget about this error). Position quantity is necessary for the proper functioning of the program. In SIM the position quantity is always correct. In SIM trading the program functions perfectly, always showing the correct position quantity. Overall it works great in SIM. BUT . . . When I switch to live trading, position quantity shows 27, which screws things up in the program. HOW DID THE 27 OCCUR . . . Previously, the program was trading incorrectly (a different error since fixed). The error was that SC live trading would be in in a buy mode and it would execute a buy on every new bar. It would accumulate more buy contracts beyond the contract limit set in the spreadsheet. On these occasions, I would manually stop the SC program. I believe this accumulated 27 buys (historical buys) in the Sierra program because I stopped the program. Often there would be a position of 5 or more contracts when exiting the program. I would manually sell the the erroneous trades on Interactive Brokers and the IB position quantity would be set to zero. For this program, I am using Interactive Brokers for my data and trade feed, with "allow support for Sierra Chart Feeds" set to NO. On the study "Spreadsheet system for trading" I had set a limit of 2 contracts. The SC program obviously ignored this limit. What I propose is to edit a file (????) that now says I have a position of 27 contracts to zero contracts. Where is the file. Every log file I find is in data not ASCII. HOW DO I DO THIS??? Or is there a better solution??? |
[2022-04-07 01:24:56] |
Sawtooth - Posts: 4181 |
This is answered here: POSITION QUANTITY - Spreadsheet for Trading - J8 position quantity error |
To post a message in this thread, you need to log in with your Sierra Chart account: