would like to make some modifications to a trading strategy in Tradestation Easy Language. Let me know if this something you can do, and how much it would cost.
#1. 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.
#2. 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.
#3. The range, the distance between the entry price and the stop-loss, needs to be a minimum, definable percentage.
#4. 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.