Global variable in DCA technical indicator lost when duplicating bot

I created a bot with technical indicators for DCA mode. I used a global variable for the DCA order amount. When duplicating the bot, the global variable gets lost and converted to a fixed value.

I also can’t export and import the settings as a json file without losing my global variable, so I don’t have that as a workaround. Maybe that is intentional for sharing bot settings? Can we edit the .json file and put a global variable back in with a text editor before importing?

Here is one of the bots I was trying to duplicate, but I’ll probably be deleting this pair later today: Gainium app

We have received your bug report regarding the global variable issue with DCA technical indicators when duplicating bots and exporting/importing settings. Thank you for providing the bot URL. We will investigate this issue and provide an update shortly.

That’s the current default behaviour for global variables. For exports the definitions of our global variables had to be part of the export which they aren’t. And the same it is when duplicating or sharing our own bots.

I can duplicate my bots and preserve my global variables for other fields just fine, just not technical indicators it seems. Feels like a bug to me.

Yes, they should be copied with bot duplicate. I understand the problem. You can safely delete bot when needed, I know how to reproduce.
But its also true, that vars is not part of import export settings, and its not a bug, its by design.

I figured the import/export part of my question was by design, makes sense. Thanks for looking into the duplication part!

Maybe this should be a separate new feature request, but can vars be added to just the import settings if we wanted to manually edit the .json file? For example:

“baseOrderSize”: “{{PaperOrderSize}}”,

Great news! This issue is now fixed.

1 Like

You can create feature request to not lost request.