Machine learning in trading: theory, models, practice and algo-trading - page 1932
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
no package is needed, where is it written?
Non-finite entries in the input matrix>>> Non-finite entries in the input matrix
maybe there is an inf
You messed up something with the data. Maybe you should try to work out a simple syntax and then train your models.
Try to apply this to the data before you train the model
X is a matrix with predictors
5k views, ala village
any luck with your own thing, city? )
Try to apply this to the data before training the model
X - matrix with predictors
Did you manage to complete your device, city? )
No, no one helps, only nudges
no package is needed, where is it written?
Non-finite entries in the input matrix>>> Non-finite entries in the input matrix
maybe there is an inf
You screwed up something with the data. Maybe you should try to understand elementary syntax and only after that you should train your models.
What I messed up - I gave the column with the closing prices
I am attaching the data, help me understand, please.What did I do wrong - gave the column with closing prices
I must have screwed up(( type in the commands I gave you
I must have screwed up something(( type in the commands I gave you.
Error in x2set(Xsub, n_neighbors, metric, nn_method = nn_sub, n_trees, : Non-finite entries in the input matrixBut, maybe I put it in the wrong place?
What is the 0.001 - what is the meaning of this?
But maybe I put it in the wrong place?
No, you didn't))
You want to manipulate "X" before it was created
do it like this.
What's 0.001 - what's the meaning?
the size of the knee in points or something, depending on the number of digits
you do not know what is what, look :
get.target <- function(x, change){ zz <- TTR::ZigZag(x,change = change,percent = F) zz <- c(diff(zz),0) ; zz[zz>=0] <- 1 ; zz[zz<0] <- -1 return(zz) }we see that this is a TTR packet.
write it in the console.
get help
igZag {TTR} R Documentation Zig Zag Description Zig Zag higlights trends by removing price changes smaller than change and interpolating lines between the extreme points. Usage ZigZag(HL, change = 10, percent = TRUE, retrace = FALSE, lastExtreme = TRUE) Arguments HL Object that is coercible to xts or matrix and contains either a High-Low price series, or a Close price series. change Minimum price movement, either in dollars or percent (see percent). percent Use percentage or dollar change? retrace Is change a retracement of the previous move, or an absolute change from peak to trough? lastExtreme If the extreme price is the same over multiple periods, should the extreme price be the first or last observation? Details The Zig Zag is non-predictive. The purpose of the Zig Zag is filter noise and make chart patterns clearer. It's more a visual tool than an indicator. Value A object of the same class as HL or a vector (if try.xts fails) containing the Zig Zag indicator. Warning The last value of the ZigZag indicator is unstable (i.e. unknown) until the turning point actually occurs. Therefore this indicator isn't well-suited for use for systematic trading strategies. Note If High-Low prices are given, the function calculates the max/min using the high/low prices. Otherwise the function calculates the max/min of the single series. Author(s) Joshua Ulrich References The following site(s) were used to code/document this indicator: http://www.fmlabs.com/reference/default.htm?url=ZigZag.htm https://www.linnsoft.com/techind/zig-zag-indicator-zig-zzo https://www.linnsoft.com/techind/zig-zag-oscillator-indicator-zzo http://www.metastock.com/Customer/Resources/TAAZ/#127 http://www.stockcharts.com/school/doku.php?id=chart_school:technical_indicators:zigzag Examples ## Get Data and Indicator ## data(ttrc) zz <- ZigZag( ttrc[,c("High", "Low")], change=20 )Not there ))
You want to manipulate "X" before it was created
do it like this
the size of the X knee in points or whatever, depending on the number of digits.
you don't know what is what, look :
we see that this is a TTR packet.
write it in the console.
get help.
Yeah, the next thing was rustling around and I got this
If I have a step change price of 1, then I should change 0.001 to e.g. 100?
I changed it to 100.
Yeah, it went on and on, and I got this
If I have a step change price 1, then I need to change 0.001 to for example 100?
Play with change parameter
Play with the change parameter
Got this picture from the last results - 4 clear clusters
Earlier you talked about some numerical values to evaluate the results - what numbers do you suggest to look at?