Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Same variable name in different Strategies possible?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Same variable name in different Strategies possible?

    Hello,

    if a copy a Strategie from StrategieBuilder, for example to use same Strategie for use 1) EURUSD 15min and a copy in 2) EURCHF 15min - is it possible to use same names for variables (trigger variable or variables to optimize for indicators) or do I have to rename the variable after copy to get not in trouble?
    So I would only rename signal names after copy, if possible?

    Do the variables only work in one strategy (StrategieBuilder) or global in all strategies? So this ist especially interesting to know for variables doing any trigger. Thanks a lot!

    Regards

    Hans

    #2
    Hello hans_771,

    You can use the same variable names, when you make a copy using Save As that will correct the items that need to be unique like the strategies class name and the name string in OnStateChange within the new file. The new copy will be a completely new class so it wont have conflicts in regard to the variable names in the old strategy.

    Comment


      #3
      Ok, thanks for explaining - so after copy a Strategie with "save as" I only should rename signal-name for Entry and Exit to get no trouble after starting both (original and copy) strategies in different instruments?

      Comment


        #4
        Hello hans_771,

        You can also leave the signal names unchanged, the only problem that would cause would be if you ran both strategies at the same time on the same instrument, the orders will have the same names which can make viewing the combined performance confusing. For example the orders tab of the control center would show orders with the same names. That won't cause any conflict in each strategy though, they will still know which orders to track even if the signal names are the same.

        Comment


          #5
          Ok, I understand. To see wich Entry and Exit belong together, I can use (I call it "lot number") the ID, especially the number after the "|" 135501050 - also they have the same name, they would have a different "lot number" - correct?


          Click image for larger version

Name:	Bildschirmfoto 2025-01-28 um 16.33.21.png
Views:	91
Size:	50.5 KB
ID:	1332637

          Comment


            #6
            Hello hans_771,

            I can't see the column header to know which column that is. I would suggest using the signal names to see the orders names, that will be the easiest way to know which orders were placed and which may have changed the position. The target orders will be linked with an OCO string so you could use that to see which targets are paired together.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            64 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            139 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            75 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            50 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X