-
letYourMoneyGrow.com started the topic Screen fractional Scaling in Ubuntu and Spyder start from Python in the forum Quantitative Methods and Programming 4 years, 11 months ago
The default GUI in Ubuntu20 allows to scale all screens but does not allow separate settings per monitor. To circumvent:
sudo apt-get install gdm3
sudo dpkg-reconfigure gdm3
Note: gdm3 is also not perfect but better than nothing.Starting Spyder from Python (without conda env)
$python
from spyder.app import start
start.main() -
letYourMoneyGrow.com started the topic Installing R4 on Ubuntu – steps after core installation in the forum Quantitative Methods and Programming 4 years, 11 months ago
There are enough good manuals on howto install R4 on Ubuntu20, my favorite one is https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-20-04-de (in German).
However, if you then install packages, you will likely get failures due to missing libraries.
So what you definitely have to do is
sudo apt install…[Read more] -
letYourMoneyGrow.com started the topic Turbo boost XEON – some useful links in the forum Quantitative Methods and Programming 4 years, 11 months ago
general discussion: useful command grep MHz /proc/cpuinfo
enabling turbo mode on SuperMicro X10DRi mainboard
-
letYourMoneyGrow.com started the topic How to confuse R with a stock ticker in the forum Quantitative Methods and Programming 5 years, 2 months ago
First try for Apple (AAPL)
> ohlc = quantmod::getSymbols(“AAPL”, auto.assign = FALSE)
> sd(quantmod::dailyReturn(ohlc))
[1] 0.02033598So far, so good.
Now try for OPEN (“OPENDOOR TECHNOLOGIES INC”)
> ohlc = quantmod::getSymbols(“OPEN”, auto.assign = FALSE)
> sd(quantmod::dailyReturn(ohlc))
Error in Delt_(getFirst(xx[1]), getLast(xx[ep[2]]), type…[Read more] -
letYourMoneyGrow.com started the topic Setuping Jupyter Notebook for R 4.0 in Conda in the forum Quantitative Methods and Programming 5 years, 5 months ago
-
letYourMoneyGrow.com started the topic plotting a heatMap with R – package akima in the forum Quantitative Methods and Programming 5 years, 6 months ago
library(akima)
library(fields)
mhu = aggregate(hu$ret, by=list(hu$sGrow1, hu$sGrow2), FUN=mean)
names(mhu)=c("ret", "sGrow1", "sGrow2")
s <- interp(mhu$ret,mhu$sGrow1,mhu$sGrow2)
image.plot(s)
-
letYourMoneyGrow.com replied to the topic How to use R behind a proxy to get data from Yahoo.Finance and Quandl in the forum Quantitative Methods and Programming 7 years, 7 months ago
One can also figure out the proxy configuration as follows:
1) run command prompt (cmd) as administrator
2) netsh winhttp show proxy -
letYourMoneyGrow.com replied to the topic Removing dead sources in Debian properly in the forum Quantitative Methods and Programming 7 years, 10 months ago
And then fix the problem like this
# grep -ri stable /etc
/etc/apt.conf.d/99myDefaultRelease:APT::Default-Release “stable”;So changing that file to “jessie” would fix it in my case (as I’m on jessie.)
(in my case the filename in /etc/apt.conf.d/ was…[Read more]
-
letYourMoneyGrow.com started the topic Removing dead sources in Debian properly in the forum Quantitative Methods and Programming 7 years, 10 months ago
As I tried to install Java on a Server running under Debian Linux, I broke my source list and got http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found by attempts to run sudo apt-get update
Deleting the line http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/jessie/main/binary-amd64/ from…[Read more]
-
letYourMoneyGrow.com started the topic Python-PyCharm: Interactive debugging in console in the forum Quantitative Methods and Programming 8 years, 6 months ago
Being an long-time R user I got used to debug my R-Scripts in console (for whatever reasons I rarely use breakpoints in R-Studio). Programming in Python I would of course prefer to have both. It is possible e.g. in PyCharm IDE:
0) set a breakpoint, debug your file
1) switch to console window
2) click on command prompt icon
3) execute arbitrary…[Read more] -
letYourMoneyGrow.com started the topic Remove quotes from text file – replace in Python3 in the forum Quantitative Methods and Programming 8 years, 7 months ago
Sometimes if you create a dataframe with rbind() in R and then save it by write.table() to a text file, all entries (numeric too) will be put in double quotes.
To remove them one can use the following Python3 script, which is especially useful if you have a lot of files.
[Read more]
import os
filePath = "/path/to/dir"
arr = os.listdir(filePath)
for fileName… -
letYourMoneyGrow.com replied to the topic GoPro (instead of ETF) – bankrupcy risk in the forum JuniorDepot 8 years, 8 months ago
Hello Hans,
thank you for your insightful comment.
Yes, as we explicitly mentioned in our blogpost, we tried to explain Elle (in a suitable manner for a 7y-kid) that GoPro does not earn money (although it does produce good action cameras).But ok, let a girl have some action :). Finally, even if she makes a loss with this investment, it will be…[Read more]
-
letYourMoneyGrow.com replied to the topic GoPro (instead of ETF) – bankrupcy risk in the forum JuniorDepot 8 years, 8 months ago
That is really a point!
However, for American stocks they are fortunately small: slightly more than €0.5 per trade.
We announced that we set a stoploss by -20%.
If we, for simplicity, assume that we also take profit by +20%, we need the probability to win to be at least 53% just to stay breakeven. Indeed: 0.53*97.56*1.2 + (1-0.53)*97.56*0.8 = 9…[Read more] -
letYourMoneyGrow.com replied to the topic GoPro (instead of ETF) – bankrupcy risk in the forum JuniorDepot 8 years, 8 months ago
Hi Esterkin,
well, yes, we did warn Elle about the bankruptcy risk (or, literally, that “GoPro may spend more money that it earns selling its cameras”). But there is also a chance that the stock price will (more than) double, so we did allow this trade (we would not if it were a definite falling knife).
And even if GoPro goes bankrupt, the…[Read more] -
Vasily Nekrasov replied to the topic Neuralstem [CUR, US64127R4011] – another stock for a gambler-investor in the forum American Stocks 8 years, 11 months ago
Closed the position with ca. -$50 loss. A position in a similar gambler stock was closed with ca. $100 profit, so in total won $50 on $300 investment. Per se not bad but in context of the drawdown that had to be tolerated – nothing good. And of course I hoped for a better pay-off from this lottery.
-
Vasily Nekrasov replied to the topic Destination Maternity Corp. (DEST, US25065D1000) is for a gambler-investor in the forum American Stocks 8 years, 11 months ago
Closed the position with ca. $100 profit. A position in a similar gambler stock was closed with ca. -$50, so in total won $50 on $300 investment. Per se not bad but in context of the drawdown that had to be tolerated – nothing good. And of course I hoped for a better pay-off from this lottery.
-
Vasily Nekrasov replied to the topic Destination Maternity Corp. (DEST, US25065D1000) is for a gambler-investor in the forum American Stocks 9 years, 3 months ago
Today the stock fell by -42%, as Destination Maternity and Orchestra-Prémaman scraped merger.
I take and calmly and put next $100 at stake.
NB! $100, not $200 (because doubling would mean a martingale, which will not make you rich)! -
Vasily Nekrasov replied to the topic Neuralstem [CUR, US64127R4011] – another stock for a gambler-investor in the forum American Stocks 9 years, 3 months ago
Code to generate the last chart using data from AlphaVantage
avUrl = paste0("https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol=CUR&outputsize=FULL&apikey=<yourAPIkey>")
dat <- fromJSON(avUrl)
nms = names(dat$"Time Series (Daily)")
N = length(nms)
dates = as.POSIXlt(nms)
OHLCV = array(0.0,…[Read more] -
Vasily Nekrasov started the topic Neuralstem [CUR, US64127R4011] – another stock for a gambler-investor in the forum American Stocks 9 years, 3 months ago
Neuralstem, Inc is down by -30%.
The stock exists for a decade and has recovered from a significant drawdown several times. The only problem that really embarrasses me: the stock has never been profitable. But if it did not confuse the market during 10 years, I bet risk $100. -
Vasily Nekrasov started the topic Salzgitter (SZG, DE0006202005) short in the forum European (in particular German) Stocks 9 years, 3 months ago
Salzgitter ist the second largest German metal company, specializing on pipes: from huge for natgas pipelines to finely polished for diesel engines.
Gas pipelines got a strong competitor: LNG tankers.
Diesel (esp. in Germany) is also in danger: e.g. they want to prohibit it in Stuttgart.
Still the stock grew intensively. But today it started to…[Read more] - Load More
FinViz - an advanced stock screener (both for technical and fundamental traders)
