Problems with using the digital currency trading class library (futures support OKCoin futures/BitVC, support $.CTA function)

Author: feiyuemiwuh, Created: 2018-03-05 08:18:00, Updated:

Tested directly using the digital currency trading class library (futures support OKCoin futures/BitVC, support $.CTA function) without making any changes. The result is not set contracttype ht

But check if the code is set. function main (() { if (exchange.GetName() === FUTURES_OKCoin FUTURES) { is the name of the exchange var info = exchange.SetContractType ((this_week button);

I don't know why this is happening. I'm having the same problem when I write other strategies.

img


More

The Little DreamI understand your question, you have directly tested this template. The main function code for this template is: What's up? // Test the code /* 2017.5.1 - 2017.10.11, K Line Day, Analog level, OK international, BTC */ function main (() { This is a list of all the different ways $.CTA is credited in the database. // Log ((r.length) // test if (r.length < 20) { return I'm not sure. var emaSlow = TA.EMA ((r, 20) var emaFast = TA.EMA ((r, 5)) is the name of the var cross = _Cross (emaFast, emaSlow); if (mp <= 0 && cross > 1) { Log ((pair, "buy, forked cycle", cross, "mp:", mp); return 0.1 * (mp < 0? 2 : 1) } else if (mp >= 0 && cross < -1) { Log ((pair, "sell, dead fork cycle", cross, "mp:", mp); return -0.1 * (mp > 0? 2 : 1) I'm not sure. It's not. I'm not sure. What's up? The.CTA function is used for spot exchanges, and you have selected a futures exchange, so it will report this error without setting the contract type. The use of futures is: What's up? This is the new position manager. // this_week is the contract of the week, PositionManager.prototype.OpenLong = function ((contractType, shares, price) exchange.SetContractType (("this_week") p.OpenLong (("this_week", 1, 1000) // so that the price is $1,000. What's up?

The Little DreamYou can see how you can use this template. The code is attached.

The Little DreamIt's not polite.

feiyuemiwuhThank you, now I understand!