Adding TradeQuanity to a Tradestation Easy Language Strategy
Budget: $30 – $250 USD
In this strategy, I’ve combined both the buy and sell side of the Parabolic SAR. I'm trying to make a modification to the strategy, Parabolic LE & SE. I would like to add TradeQuantity. I would like to risk a fixed amount of dollars on every trade, whether the range from the high to the low of the SAR is 5% or 1%.
For example, In the screenshot below, I would like the risk to be based on the difference between the buy entry, and where the SAR would be positioned for a stop-loss should the trade trigger. In this case, the entry at $35.00, subtracted by $34.53 would be $.47. If I wanted to risk $100, ($100 / $.47) = 213 shares. The important thing though, is that the share count adjusts after every bar. The previous bar, the SAR was at $35.04. If it would have triggered this bar instead, ($100 / $.51) = 196 shares. As the range gets smaller, the number of shares would increase. I also would like to add a tick threshold, where price needs to break above the high of SAR by at least 1 tick before triggering. Is this possible to do within the Tradestation Strategy Code? Thanks.
For example, In the screenshot below, I would like the risk to be based on the difference between the buy entry, and where the SAR would be positioned for a stop-loss should the trade trigger. In this case, the entry at $35.00, subtracted by $34.53 would be $.47. If I wanted to risk $100, ($100 / $.47) = 213 shares. The important thing though, is that the share count adjusts after every bar. The previous bar, the SAR was at $35.04. If it would have triggered this bar instead, ($100 / $.51) = 196 shares. As the range gets smaller, the number of shares would increase. I also would like to add a tick threshold, where price needs to break above the high of SAR by at least 1 tick before triggering. Is this possible to do within the Tradestation Strategy Code? Thanks.