Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Rod Pemberton" Newsgroups: comp.lang.forth Subject: Re: well this code works and I had some guy say it doesn't Date: Fri, 20 Sep 2013 04:37:26 -0400 Organization: Aioe.org NNTP Server Lines: 45 Message-ID: References: NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:25835 On Thu, 19 Sep 2013 01:55:55 -0400, gavino_himself wrote: > > $ gforth > Gforth 0.7.2, Copyright (C) 1995-2008 Free Software Foundation, Inc. > Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license' > Type `bye' to exit > > : stock-gain 100 * swap / 100 - cr . ." precent" cr ; redefined > stock-gain ok > 34 55 stock-gain > 61 precent > ok > Ok. It's clear you aren't going to be using a Forth environment for latency arbitrage (or HFT)... So, for Forth to be of any real use to you, you'd need to implement Black-Scholes, Sharpe ratio, Treynor ratio, or perhaps Modigliani risk-adjusted performance metric in Forth, i.e., something not on a standard calculator. Is one of those next up? How do you plan on implementing logarithms in Forth for charting stock prices? You definately don't want to use linear price charting. So, do you think SBUX is a good short since they angered half of the U.S. population with their anti-gun rhetoric? It's clear SBUX has a neglible dividend which means there is no price floor should their stock price crash. Of course, it's much easier to just use BigCharts or Yahoo! Finance. They've done all that programming for you already. Scottrade and E*trade probably provide even more calculations on stock data for their members. Of course, none of it will be as complete as ValueLine. Rod Pemberton