- ago
Hi, I am having a problem setting up quote and price trigger on another PC as this one.

I noticed, that after sending limit orders from strategy monitor to quotes and price triggers window, after settings up auto-place and stream button, the trigger percentages don't show up at all.




these are the errors I am getting which could possibly have something to do with it?

"at System.DateTime.ThrowDateArithmetic(Int32 param)
at WealthLab.KuCoin.KuCoinHistorical.RequestHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, Boolean includePartialBar)
at WealthLab.KuCoin.KuCoinHistorical.GetHistoryInternal(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars)
at WealthLab.Data.DataProviderBase.GetHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, DataRequestOptions cb)
at WealthLab.KuCoin.KuCoinStreaming.SubscribeTo(String symbol)"

is the strategy setup I am currently using. Works just fine on my original pc (which is currently shut down of course for testing out on another pc).
0
351
Solved
18 Replies

Reply

Bookmark

Sort
- ago
#1
I noticed KuCoin doesn't allow me to update DAILY or WEEKLY datasets, yet it works fine for 30 minute one. I have the right API and am connected to kucoin (I know this, because actual trades go through just fine)



0
Cone8
 ( 28.25% )
- ago
#2
First, it's the weekend, slow trading. You won't see updates until the instrument trades.

But the problem your having is probably due to the subscribe error. I see a potential problem that could happen there, so we'll get that changed for the round of builds that will happen this week (probably).
0
Cone8
 ( 28.25% )
- ago
#3
Do me a favor - run this script on the machine that's having trouble and tell me what the Debug output is.

CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; using WealthLab.Data; namespace WealthScript3 { public class MyStrategy : UserStrategyBase { public override void Initialize(BarHistory bars) {          WriteToDebugLog(DateTime.UtcNow.Date);          WriteToDebugLog(DateTime.MinValue); } public override void Execute(BarHistory bars, int idx) { } } }
0
- ago
#4
Thanks for info. Regarding the code, where am I supposed to put it. Do I create a "New C#-Coded strategy"? Or rather, where in Wealthlab do I put this code? Thank you in advance :)
0
Cone8
 ( 28.25% )
- ago
#5
New Strategy > C# Coded
Replace everything in the Code Editor with the code above
Run Backtest on any one symbol, and copy the Debug Log here.
0
- ago
#6
The problem seems to be related to kucoin daily datarange, which says "could not load backtest Data in this Scale/Range. When attempting your preset crypto ticker, it brings no such error. I also attempted to re-install Kucoin extension, but that did not work either.





0
Cone8
 ( 28.25% )
- ago
#7
Is KuCoin "checked" in the list of Data Manager > Historical Providers?

Run the script with any symbol, any time frame, any provider. Use AAPL, for example.
0
- ago
#8


Yes, KuCoin is listed as historical provider. Basically, everything else works, except for KuCoin DAILY / WEEKLY timeframes, which is an issue because I cannot get the strategy to run without historical data.

example of AAPL:


0
- ago
#9
Testing historical data loading testbeds:





again, kucoin daily / weekly are the ones that can't get any data.
0
- ago
#10
Binance testbed also works just fine.

0
Cone8
 ( 28.25% )
- ago
#11
Assuming that you're redacting the API Keys (they're aren't really blank), don't get distracted and do this:

1. Run the script on any symbol, like AAPL.
2. Copy and paste the Debug Log here. It's another tab that will appear after you do #1.

fwiw,


0
Cone8
 ( 28.25% )
- ago
#12
Hold the presses! You don't have the update that I'm working with, which is Build 4. This will be ready to install later this week, possibly tomorrow.

KuCoin Build 4
- Fix: Initial Daily+ historical data requests were failing in some scenarios
- Fix: 60-Minute Polling was broken

You should able to get Daily data right now if you request a specific Date Range.
1. Open a chart
2. CLick the from/to dates in the chart's status bar
3. For Data Range, select Date Range

That will probably work.
0
- ago
#13
---Symbol by Symbol Debug Logs---
---AAPL---
6/5/2023 12:00:00 AM
1/1/0001 12:00:00 AM---Symbol by Symbol Debug Logs---
---BTCUSDT---
6/5/2023 12:00:00 AM
1/1/0001 12:00:00 AM
---Symbol by Symbol Debug Logs---
---ETH.USD---
6/5/2023 12:00:00 AM
1/1/0001 12:00:00 AM
---Symbol by Symbol Debug Logs---
---SPY---
6/5/2023 12:00:00 AM
1/1/0001 12:00:00 AM
---Symbol by Symbol Debug Logs---
---NDAQ---
6/5/2023 12:00:00 AM
1/1/0001 12:00:00 AM

this is what I got. There is no debug message in BTC-USDT daily timeframe, debug log shows empty for it.
0
- ago
#14
As for chart, it's as if ticker doesn't even exist on these timeframes, only exists on lower ones.



0
Cone8
 ( 28.25% )
- ago
#15
Once a Provider fails to return a symbol/scale in a WealthLab session, it won't even try again, unless you "Clear Internal Tracking Requests".


Or, you can just restart WealthLab to try again too.
0
- ago
#16
I tried that, and tried deleting local files, also tried uninstalling wealthlab and deleting wealthlab folder with all plugins (I assume the plugins are located in wealthlab folder?), attempted different API (on same account though) but the problem still persists and it's only on DAILY and WEEKLY scale and only for kuCoin, every other provider works fine.

Though I noticed not all settings get deleted after uninstalling + deleting wealthlab folder. Is there a way to completely remove all wealthlab info from pc without reinstalling windows?
0
Cone8
 ( 28.25% )
- ago
#17
As I said, there's a bug that will be fixed in KuCoin.. this week. I'd suggest you just don't spend anymore time with it and wait for the fix in KuCoin Build 4.
1
Best Answer
- ago
#18
Understood :) I thought that just in case it wasn't related to that particular bug I could maybe get to bottom of it. Glad you took the time to look into it, so you have my thanks.
1

Reply

Bookmark

Sort