Data on binance historically seems to have holes in it.
Data on cryptocompare appears to not have that issue.
I THINK I need a regex to map symbols so I can use binance as the broker and cryoptcompare for calculations aka streaming in strategy monitor.,
So if I understand correct..... I would do this.
1) create a symbol set that has the cryptocompare nomenclature is. btc.usd use this as the historical data source.
2) Then on binance I need a regex to transform the symbol to btcusd and use this as the broker.
What would that symbol regex be (to basically remove the period in that 4th spot)? I have tried and failed unless a just create a symbol by symbol replacement.
Data on cryptocompare appears to not have that issue.
I THINK I need a regex to map symbols so I can use binance as the broker and cryoptcompare for calculations aka streaming in strategy monitor.,
So if I understand correct..... I would do this.
1) create a symbol set that has the cryptocompare nomenclature is. btc.usd use this as the historical data source.
2) Then on binance I need a regex to transform the symbol to btcusd and use this as the broker.
What would that symbol regex be (to basically remove the period in that 4th spot)? I have tried and failed unless a just create a symbol by symbol replacement.
Rename
Well, it appears WL regexp's are always performing a greedy match for any character so there's no way to instruct a match for only the first three alpha characters; otherwise, something like
But our goal is to make the regexp as specific as possible. Is the resulting symbol always going the end in "USD" in all caps? If so, then the following should work where it will always remove the period before anything "USD" uppercase.
CODE:should force a match requiring three alpha characters both before and after the period, but this doesn't work. It's a bug in the regexp engine being used; it can't count to 3.
[(\w{3})\.(\w{3})=$1$2]
But our goal is to make the regexp as specific as possible. Is the resulting symbol always going the end in "USD" in all caps? If so, then the following should work where it will always remove the period before anything "USD" uppercase.
CODE:Remember, regexp's are case sensitive. If you want it to match lowercase, then write it as such.
[(\w+)\.USD=$1USD]
Let me give it a test this morning.
Your Response
Post
Edit Post
Login is required