Blueprint of Trading Bot

1 478 Views 3 Comments 4 months ago
HTS CLOUDSTABLE
  • Hi, guys and gals,

    I like to share a blue print of a general trading bot.

    You can change any function in the blueprint to adjust your needs.

    Please tell me what you think about this blueprint in the comments.

    Cheers!

    HaasScript Code
    Sign in or Register to download for free
    • #3183
      romdisc
      Basic
      Up
      0
      Down
      ::

      The CC_market_price_enter/exit take the poid as the first parameter and return it, if, and only if, this function/command has side effects, hence places an order with a new poid.

      This practice guaranties that you will have only one position running with this specific poid.

      Therefore, the enter statement might set the poid and the exit statement might reset the poid.

    • #3196
      Fox
      Basic
      Up
      0
      Down
      ::

      Hi have you put anything like this together in visual editor, would be great for a novice like me to have a blueprint like this as a guide.

      • This reply was modified 4 months ago by Fox.
      • #3208
        pshai
        Admin
        Up
        0
        Down
        ::

        For VE it’s not really that useful to create any blueprints as every bot you make with it might be very different from the others. I mean, for a single script file, it’s not easy to do, but if you split it into multiple scripts where you have the main script and CC’s, then its possible, as you can re-use the CC’s.
        So it is not really a blueprint; you just create yourself a bunch of re-usable CC’s and the main script file is the one that changes depending of the bot.

Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free