Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Duplicating Strategy erases Drawn Object tags

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

    Duplicating Strategy erases Drawn Object tags

    I noticed a some of the time that if I want to duplicate a strategy, by right clicking and choosing save as > new name

    Then inside the new document immediately save, I'm often confused as to why the strategy doesn't work. But it seems like NT sometimes(not always) deletes part of the tag names from draw.text etc...

    for example:

    RemoveDrawObject("V7 LongHL" + (SymbolCtr - SymbolMax)); //NEW

    in the new file becomes

    RemoveDrawObject("V7ALT" + (SymbolCtr - SymbolMax)); //NEW

    Everything after the space is removed and every drawing in the strategy has the same tag name.

    #2
    Hello several,

    I would be happy to report this if you have a set of specific steps that cause that to happen. When saving a file that should only modify the class and name in State.SetDefults. If you are seeing your code being modified or removed that should not be happening. I would suggest to try and walk through the steps you used to see that happen and if you see it again, make a new script that includes whatever code is needed to see the problem and then upload that along with the steps you found.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    45 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    31 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X