Sometimes you want to edit your strategy and find you have alot of numbers in rules that you have to change.
Its best to put these numbers and other values in variables so that you can use your variable screen almost like a settings screen for easy editing. This is especially important if you are a creator who plans on sharing their strategies.


  1. Here is how to add variables to a strategy to replace the TP and SL values for easy editing.
    The strategy we are editing is the ABC Smarter Money Strategy and it has one TP line and one SL line.
    The SL moves when the TP is hit. So we need to know where to place the TP and the SL and also where to
    move the SL to.

  2. Image

  3. Ive created 3 new variables in the variables tab - Ive added descriptions to them - and then ive made them numbers and gave them values. The same values seen the in rules and the line builder we just discussed. I also checked the read only box which means these can only be edited by us humans, the rules cant edit them. And i checked show in setup to show these fields during strategy setup

  4. Image

  5. you can see them here when you copy the strategy now

  6. Image

  7. To hook these up first i went to the exit rules and i checked the reference field box - then i changed the dropdown to SL Move To

  8. Image

  9. next i went to configure TPSL and hit Quick edit then i checked the dynamic box above the Price for Take Line Then i set the dropdown to TP Start - now that is connected to the variable

  10. Saving the best for last...

  11. Image

  12. Youll notice that the 1.8 in the condition for the short is negative. In order to do this math correctly we need a negative version of the TP. Ofcourse asking the user to input their TP once negative and positive is less than ideal - so im adding a new variable but this one I'm not checking the show in setup. Also im not checking read only cause we are going to set this with our rules so it matches what they enter for Start TP but negative.

  13. Image

  14. youll notice i set the value to zero for this one - cause we are going to set it

  15. Image

  16. go into edit, and hit both of these + twice - 4 button clicks.

  17. scroll down and should look like this

  18. Image

  19. (im saving this in the template but mise well show everything)

  20. Image

  21. and here it is again with the fields filled in. We are setting our TP Inverse to our TP Start and then we are multiplying it by -1 so its a negative copy of what they entered for TP

  22. I then recommend moving the place order at the bottom

  23. Image

  24. simply cause its more organized that way and makes it look nice. Its a good habit to have because while Place Order is special and i will always make sure you place order at the end of the rule (if you stick it in the middle) - but math actions like set, add, multiply, they run in order. From top to bottom. So its important to use the arrows to sort actions.

  25. Image

  26. And then you set your break even long with TP Start - the positive one and your breakeven short with the TP Inverse so its negative.