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.
Add a tick threshold to both sides, needing each side to break the SAR by a pre-determinable amount, 1 tick, 2 ticks. And then calculate the shares to trade based on the tick threshold.
The range, the distance between the entry price and the stop-loss, needs to be a minimum, definable percentage.
Set a profit target and stop-loss based on a percentage of the range. For example, in the screenshot posted, the range is $.47. Being able to set the profit target at 75% of the range for example, ($.47 * .75) = $.3525, Price to buy = $35.00 + $.3525 = $35.25 Profit Target.
Being able to set the stop-loss at 25% of the range for example, ($.47 * .25) = $.1175, Price to buy = $35.00 - $.1175 = $34.88 Stop-Loss.
Is this possible to do within the Tradestation Strategy Code? Thanks.
6 freelancer chào giá trung bình$194 cho công việc này
Hello sir , Is it desktop application ? Or web application ? If we web application and API provided , then everything possible sir . Please let me know sir , when you here . Thank you