• #2285
      Shoe
      Basic

      Hi Dan, thanks for taking a look at the details. 🙂 It feels good seeing people digging deeper and challenging the code.

      Honestly, I don’t understand the first line either. This is coming from the original by Pshai. The only thing I added was checking for isBacktest because SetFee() is applied in backtests only anyways and I thought it might speed up the backtest by a nano second if I check this first. If you would like to understand why setFee() is used like this please approach Pshai, most preferrably on the Discord server in the #haasscript-bots channel. I am sure he has an answer to this…I just trusted him with this line of code but now that you’re asking I am interested as well.

      Regarding if not isBacktest then CC_VPM3() end I have a proper answer. 😀 It’s loading the Custom Command for Virtual Position Management by Kobalt but this is definitely not used in backtests why I also tried to save some time in backtests not loading it at all. I did some performance tests and it doesn’t save as much as I was hoping for but if you’re testing a large timeframe and some variations (HaasLabs) it definitely counts.

      I hope this helps.

      Cheers,
      Shoe

    • #2247
      Shoe
      Basic

      Hi,

      I started implementing it a while ago and I remember there was some hurdle (I don’t know exactly what it was) why I stopped working on it. It’s still in my backlog but not with high priority. I am not sure how benificiary it really is. I also remember that I did some calculations and found the dynamic spreads renewing the slots after a while more helpful. If you think it’s a very helpful strategy contact me via discord and I am happy to hear your thoughts.

Viewing 1 reply thread

Unlock your crypto trading potential

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

Join for Free