• BTC/USD $61,367.75 USD
  • ETH/USD $3,859.21 USD
  • LTC/USD $189.80 USD

How to set the trade amount dynamically for a custom bot?

  • 1 Answer
    • haasscript
    • trade bot
    894
    asked 9 months ago

    I want to set the trade amount dynamically after each trade using simple math and logic.
    I looked through the Script Editor and Visual Editor and I know that there are ways to handle this, but I am wondering what would be the proper and easier way, without making it too custom.
    For example, can I still use the TradeBotContainer, or do I need to re-implement everything there so it can handle such customization?

    Answer:

    Unfortunately, Managed Trading doesn't allow you to change the Trade amount dynamically. Unmanaged trading isn't that hard at all. This is the basic code for any order executions for VE, and you can customize it any way that you like. Just copy and import it in your VE. https://pastebin.com/rf2NY1fX

1 Comments

  • AlexTan 9 months ago
    Unfortunately, Managed Trading doesn't allow you to change the Trade amount dynamically. Unmanaged trading isn't that hard at all. This is the basic code for any order executions for VE, and you can customize it any way that you like. Just copy and import it in your VE. https://pastebin.com/rf2NY1fX

Have more to add? Share your knowledge

The community content is generated by people from the community and is actively moderated. However, we do not endorse or claim to maintain any user generated content, links, tutorials, guides, projects, or questions that may appear in community sections.