Blueprint of Trading Bot

1 570 Views 3 Comments 8 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
  • Mandala Trading Competition Promotion Type: contest Expires: June 9, 2023 Exclusive
    Trading volume competition, win up to $10,000 USDT and bounties.
  • Earn Up to 200 BMEX Tokens Promotion Type: contest Expires: March 31, 2023
    15 BMEX @ $20,000, 25 BMEX @ $50,000, 50 [email protected] $200,000, 100 BMEX @ $400,000, 200 BMEX @ $600,000 in monthly derivatives volume
    • #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 8 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