Thanks for your reply.
Variable = (Swinghigh-Swinglow) * 3 / 7
Yes it is possible but not easily done in the Strategy Builder.
Math is accomplished by using the "Offset" function. Please see the Strategy Builder help guide section " How to offset an item value" on this page: https://ninjatrader.com/support/help...on_builder.htm
However you would not be able to accomplish (Swinghigh-Swinglow) * 3 / 7 in one step. Also using a variable does not allow you to offset.
To accomplish your goal you would need to create 3 custom series (double type) in the "Additional data" window in the Custom series section.
In a set without conditions (The sequence is important):
1) Assign the first custom series to the swing high and you offset the swing high by subtracting the swinglow
2) Assign the 2nd custom series to the first custom series and offset by multiplying times 3
3) Assign the 3rd custom series to the 2nd custom series and offset that by dividing by 7.
The 3rd custom series would then represent (Swinghigh-Swinglow) * 3 / 7
I've attached an example of what the finished set would look like:
Note: When assigning a custom series to a custom series, you will have to look in the Misc>Custom series> and select the series to use as the input.
Comment