How to reference portfolio.assets?
#4
I would like to bump this question. 

It would be very useful to be able to check the portfolio asset and balance within the strategy and I have failed to figure out how to read the this.portfolio.currency, this.portfolio.asset and this.balance that are used in trader.js for example. I am sure it is not that difficult but my java-skills are not there yet. My work-around is to edit trader.js so it is writing the portfolio data to a tmp-file that my strategy keeps reading. It is not pretty!
  Reply


Messages In This Thread
RE: How to reference portfolio.assets? - by Hallonstedt - 09-06-2019, 10:40 AM

Forum Jump:


Users browsing this thread: