Support Board
Date/Time: Sat, 23 Nov 2024 16:24:47 +0000
[Programming Help] - SpreadSheet Long only and Short Only
View Count: 726
[2023-09-08 14:36:30] |
Le Dharma - Posts: 73 |
Hey Sierra. I am testing the SS system for Auto Trading. I was using the Global Auto Trade On/Off as a Hotkey. With a keystroke the system turns on and off. Unfortunately, I cannot distinguish between long only, and Short only. Now I could use a Moving average to designate when long only and short only should happen. But that would destroy the efficiency of the SS system. Is there a good way to turn on the SS auto trading for Long Only trades, and in the next moment, turn that off and turn on Short Only auto trading? Right now, all I know to do, is to enter the Spreadsheet, Inactivate the code for longs, and then turn on auto trading. Unfortunately This is cumbersome, and defeats the idea of using hotkeys. Would I be able to create 2 Spreadsheets, one for long only trades, and one for short only trades, and turn one of them on and off using hotkeys? Date Time Of Last Edit: 2023-09-08 14:52:59
|
[2023-09-08 15:32:25] |
John - SC Support - Posts: 36238 |
Unfortunately, I cannot distinguish between long only, and Short only.
Now I could use a Moving average to designate when long only and short only should happen. But that would destroy the efficiency of the SS system. This is really what you need to do, so that your Spreadsheet System for Trading is automatically deciding what to do. Why do you state that this will "destroy the efficiency of the SS system"? For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-09-08 16:39:31] |
Le Dharma - Posts: 73 |
The system picks bottoms and tops on a short term basis. Using an MA, would require the price to rise too much, before price was above the MA. I could look for inflection points in the MA, but this results in lots of buy signals during a downtrend. I would like to choose when I enter my trades, which I try to make right after a reversal. So I built a little auto trader to help with that. Unfortunately, I also have lots of sell signals showing up too, and this forces me to watch the price action carefully, to make sure my long doesn't wind up going short again. I guess I could disable the short entry signal, for specific times where I am looking to go long. and vice versa. Although I would love to have a hotkey to specify whether the autotrader goes short or long. Date Time Of Last Edit: 2023-09-08 16:41:17
|
[2023-09-08 17:39:04] |
John - SC Support - Posts: 36238 |
There is not a built-in way to do this. The only option to have something like this would be to create a custom study that lets you have the two control bars and you would need to have 2 separate Spreadsheet Systems for Trading, where your custom study would set the state for "Send Orders to Trade Service" based on which on you wanted to use. Refer to the following: sc.SetChartStudyInputInt() For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-09-08 21:11:31] |
Sawtooth - Posts: 4118 |
Is there a good way to turn on the SS auto trading for Long Only trades, and in the next moment, turn that off and turn on Short Only auto trading?
The only native way would be to use a cell on the spreadsheet, e.g. H2, and then reference it in your K3/M3 formulas.A client of mine had this same request, and he found a way using the "Active ACS Button as SG" custom study in Frederik's free bundle here: https://www.simplesystemtrading.com/freebundle-access/#inside |
[2024-08-18 16:27:38] |
HumblyTrading - Posts: 179 |
I was looking for something similar, but figured out it can be done with using the "Trading System Based on Alert Condition," studies. Set up one for the Buy signal and set it to "ACS Control Bar Button #:" 1 Set up one separate for the Sell Signal and set it to "ACS Control Bar Button #:" 2 You can set up as many as you like... Simple entries and exits only, no chase entries for example. Now, while price is live, if the global and chart auto trading are enabled, you still have to use the ACS Control Button 1 to enable/disable auto longs, and Button 2 to enable/disable auto shorts. I use a hotkey A for buys and S for Sells. So in practice, price is moving close to a level I want to short, I push the S key. The next price touch of that level takes me in. I immediately press the S key again to ensure it is now off... That is the thing to remember... You have live ammo whenever the key is on. |
To post a message in this thread, you need to log in with your Sierra Chart account: