Strategy Pine Script™ – Triband_Long Only for supporting Investments

Tradingview: guide for beginners

Investors very often correctly select stocks using fundamental analysis. However, the strategy suffers from shortcomings from a “momentum” perspective.
This simply system – which I recommend applying on a monthly basis – is simple and very effective: it uses a simple average of the opening, maximum and minimum of the currentmonth’s candle and compares it with the closing of the current month. If prices are higher than this average you enter/stay in the market, otherwise you exit. Since it is designed to support investment, short operations are not foreseen. In this way the performance compared to simple buy & hold is much improved.
If you want no to use strictly the strategy, however you may check week by week how prices are distant from this average.
You may also decide the period for backtesting.

CODE

//@version=5

strategy(title=’Triband_Long Only for Investments’, overlay=true, precision=4, calc_on_order_fills=true, calc_on_every_tick =true, default_qty_type=strategy.percent_of_equity, default_qty_value=20, initial_capital=100000, currency=currency.EUR, commission_type=strategy.commission.percent, commission_value=0.25)
// by Sauciusfinance

period_ = input.int(1, title=”Length”, minval=1)
halfband = (high[period_]+low[period_]+open[period_])/3
plot(halfband, title=”halfband”, color=color.blue, linewidth = 2, style=plot.style_stepline)

// === INPUT BACKTEST RANGE ===
fromMonth = input.int (defval = 1, title = “From Month”, minval = 1, maxval = 12)
fromDay = input.int (defval = 1, title = “From Day”, minval = 1,maxval = 31)
fromYear = input.int(defval = 2019, title = “From Year”, minval = 1970)
thruMonth = input.int(defval = 1, title = “Thru Month”, minval = 1, maxval = 12)
thruDay = input.int(defval = 1, title = “Thru Day”, minval = 1, maxval = 31)
thruYear = input.int(defval = 2112, title = “Thru Year”, minval = 1970)
// === FUNCTION EXAMPLE limit for backtest ===
start = timestamp(fromYear, fromMonth, fromDay, 00, 00) // backtest start window
finish = timestamp(thruYear, thruMonth, thruDay, 23, 59) // backtest finish window
window() => time >= start and time <= finish ? true : false // create function “within window of time”

// entries

xentryl = ta.crossover(close, halfband) and window()
xentrys = ta.crossunder(close, halfband) and window()

strategy.entry(‘Long’, strategy.long, when= xentryl, comment=’apri’)

strategy.close(‘Long’, when=xentrys, comment=’chiudi’)
// MONEY MANAGEMENT
lossp = input.float(8, minval=1, step=1)
losspel = strategy.position_avg_price * (1 – lossp / 100)
fixed_stop_long = close < losspel
strategy.close(‘Long’, when=fixed_stop_long, comment = ‘Stop loss’)

Trading system giornaliero (End-of-Day) con Detrended Price Oscillator (“il potere del DPO”)

 Riprendo un post che avevo scritto soltanto in inglese “The power of DPO – Detrended Price Oscillator” del 13 settembre 2021, integrandolo coi relativi commenti (via via aggiustati).

PREMESSA

I prezzi contengono tutte le informazioni necessarie per investire con successo nel mercato.

Così ho scoperto il DPO – Detrended Price Oscillator per fare investimenti, raddoppiando il periodo standard (non 20 periodi ma 40).

Nei grafici giornalieri e settimanali, è diventato l’indicatore principale (ovvero l’indicatore più esaustivo del trend cosiddetto “primario”).

Naturalmente, come da molto tempo a questa parte, il sistema di trading – testato in modalità “paper” – è solo LONG (al lettore la possibilità di verificare le possibilità “short” su cui mi sono già cimentato ma con scarsi risultati).

“FILOSOFIA” 

  • DPO(40) identifica la tendenza primaria: in generale, inizia solo con la seconda candela positiva (già con apertura), mai con la prima per cancellare i falsi segnali. Un buon consiglio non è mai aprire una posizione speculativa in opposizione al trend primario (cioè mai andare lunghi se DPO <0).
  • Usa il Parabolic Sar (standard) o lo Stocastich (10,6,4) – guardando semplicemente l’incrocio delle 2 linee, identificate dalla zona di colore blu e rosso – per prendere posizione. Si può aggiungere un incrocio della media mobile standard a 20 giorni come semplice conferma della tendenza.
  • RSI (13) – cioè accelerato di un 10% in più rispetto allo standard di 14 periodi – identifica un massimo o un minimo locale, soprattutto con l’incrocio di 30 e 70 linee (per il take profit).

IL TRADING SYSTEM GIORNALIERO

Eccoci alla parte che più vi interessa: di fatto si tratta di implementare in pratica i primi 3 cardini precedenti, nati dall’esperienza sui mercati finanziari.
COMPRARE (LONG) SE 
  1.  DPO incrocia al rialzo il livello 0 o
  2.  i prezzi incrociano al rialzo lo standard Parabolic Sar(0.02,0.02,0.2) col vincolo di DPO >=0 (lasciamo perdere l’equivalente stocastico di minor velocità nella “lettura” o l’aggiunta della media mobile o
  3. RSI <=25 (indipendentemente dagli altri indicatori

CHIUDERE LA POSIZIONE LONG SE (di fatto uno degli indicatori precedenti fornisce segnali non buoni)

  1. DPO va sotto 0 o 
  2. i prezzi vanno sotto lo standard Parabolic Sar o
  3. RSI incrocia al ribasso 70 o 
  4. RSI > 75.
  5. stop loss 10% (consiglio io sempre come money management).
Come noterete, solo le regole 3 e 4 non sono perfettamente “simmetrice” alla 3 di apertura. 
VANTAGGI – considerazioni finali
Per funzionare bene ed avere buoni segnali, il Trading System proposto necessità di una  watchlist estesa (minimo 20/30 titoli, comprese azioni, materie prime, indici e criptovalute) su cui consiglio alert automatici.
In tal senso anche per contenere i costi rispetto a Tradingview su cui si arriva a max 100 alert nell’abbonamento mensile più costoso, consiglio l’app mobile Android Chartpro, molto performante anche per cellulari non nuovi e il cui unico limite in termini di alert è la sola RAM. Io ne ho attivi oltre 80 e senza impatto sulle funzionalità del telefono.

Sconsiglio di effettuare trading su titoli a minore capitalizzazione o poco liquidi, dove i segnali dei prezzi possono dare luogo a fenomeni di “discontinuità” degli indicatori. Meglio preferire i titoli a maggiore capitalizzazione (essendo tutto basato su analisi tecnica).

Il trading system da luogo a performanti e veloci segnali di ingresso ed uscita: la rapidità di esecuzione la mattina successiva al segnale (con conferma dell’impostazione) è essenziale per la buona riuscita del trading. 

Il trading system pertanto vi farà stare dentro che pochi giorni con performance di guadagno che possono arrivare ad un 20-30%: molto adatto a pertanto a trader che vogliono seguire con costanza i mercati e non hanno un approccio da investitore da “buy & hold”. 

Esempio di schermata con  app Professional Stock Chart (prostockchart.com)

 

 

Trading in periodo di guerra

Scrivo velocemente questo post a seguito della ricezione di diverse mail con le quali alcuni trader o investitori mi hanno chiesto consigli sul da farsi

Andiamo long sul GAS?

– Andiamo short sull’indice Russo? (ammesso che tu oggi riesca a negoziare…)

– Andiamo long sul grano?

 e potrei continuare. Provo a dare una risposta più organica. 

Bene, la premessa è : che etica ci vogliamo dare? 

In temi “normali” è fuori discussione che si possano assumere le posizioni sugli strumenti finanziari di interesse: in fondo nessuno obbliga la controparte a negoziare, nessuno ti regala soldi sui mercati e se ci guadagni meglio per te (sempre nel concetto che la vincita sul mercato finanziario non è un gioco “a somma zero”).

Possiamo davvero speculare come se nulla fosse in tempo di guerra? Sono risposte che trovano necessariamente una risposta individuale e anche se i trader sono teoricamente liberi come le “rondini”,  per citare gli Anonymus. Ma anche questo gruppo si dà delle “direttive”.

Premesso che la volatilità è sempre molto alta (quindi tatticamente essere sul mercato oggi è comunque rischiosa) e dagli esiti davvero incerti (guidano sulle azioni per es. più le azioni belliche che le trimestrali), sinceramente sui morti e sulle debolezze non speculo. 

Voglio differenziarmi dagli Oligarchi russi: non incremento patrimonio e reddito a scapito di chiunque. 

Sullo short mi ero già espresso in altri post, io decido di stare fermo in questo periodo. 

E non vado in ingresso per comode posizioni long su materie prime, quali gas e petrolio. E neppure sul grano o su beni di prima necessità.

Qualcuno potrebbe obiettare che prezzi più alti oggi diano maggiori profitti agli agricoltori, dopo anni di ribassi, quindi non sarebbe male.

Bene dobbiamo guardare al BREVE: non esasperiamo situazioni già difficili e su beni di prima necessità o assumere posizioni finanziarie che possono dare offesa alle popolazioni della parte lesa. Sul medio/lungo periodo ci penseremo. Questo è un buon criterio. Altrimenti siete come i signori della guerra o come gli Oligarchi russi. 

Stocks vs ETFs: which class to keep in your portfolio?

 

Stocks vs ETFs: which ones to keep in your portfolio?



Perhaps you have decided that you want to invest in a particular sector. You may now find yourself in a position to choose between buying stocks or an exchange traded fund (ETF).

Making this choice is no different than any other investment decision. As always, you want to look for ways to reduce the risk. And, of course, you want to generate a return that beats the market.

Reduce volatility of an investment is the general method of mitigating risk. Most investors forgo upside potential to prevent a potentially catastrophic loss. An investment that offers diversification within an industry group should reduce portfolio volatility. This is one way that diversification through ETFs works in your favor.

Improving Jensen’s Alpha (a poorly understood and “focused” goal)

Alpha is the ability of an investment to outperform its benchmark. Whenever you can create a more stable alpha, you will be able to experience a greater return on your investment. There is a general belief that you need to own stocks, rather than an ETF, to beat the market. Furthermore, many investors are under the impression that if you buy an ETF, you are stuck receiving the average return in the industry. Neither of these hypotheses is necessarily true because it depends on the characteristics of the sector. Being in the right industry can lead to alpha optimization as well.

KEY POINTS

  • Stock selection offers an advantage over exchange traded funds (ETFs) when there is a large spread of returns from the average.

Exchange-traded funds (ETFs) offer advantages over equities when the performance of the sector’s equities has a narrow spread around the average.

  • Exchange traded funds (ETFs) on the other hand can be beneficial if you are unable to gain an advantage through knowledge of the individual company.

EXAMPLE
Based on your research and experience, perhaps you have a good idea of ​​how well a company is performing. This insight gives you an advantage that you can use to reduce risk and get a better return. Good research can create value-added investment opportunities, rewarding the equity investor.

The retail sector lends itself to Stock Picking

The retail sector is a group where stock picking could offer better opportunities than buying an ETF that covers the sector. Companies in the industry tend to have a wide spread of returns based on the particular products they carry. This can create an opportunity for the discerning stock picker to do well.

For example, let’s say you recently noticed that your daughter and her friends prefer a particular retailer. Upon further research, it turns out that the company has upgraded its stores and hired new product management staff. This has led to the recent launch of new products that have caught the attention of your daughter’s age group. So far, the market hasn’t noticed. This type of perspective (and your research) could give you an edge in stock picking over buying a retail ETF.

The vision of business through a legal or sociological perspective can provide investment opportunities that are not immediately captured in market prices. When such a context is determined for a particular sector – and where there is a lot of yield dispersion – investments in single stocks can provide a higher return than a diversified approach. 


When an Exchange-Traded Fund (ETF) Might Be the Best Choice ù

Sectors that have a “narrow spread” of average returns do not offer stock pickers an edge when trying to generate market-beating returns. The performance of all companies in these sectors tends to be similar. 

EXAMPLE
For these sectors, the overall performance is quite similar to the performance of any stock. The utilities and basic consumer goods industries fall into this category. In this case, investors need to decide how much of their portfolio to allocate to the sector in general, rather than choosing specific stocks. Because the dispersion of returns on utilities and basic consumer goods tends to be limited, choosing a security does not offer a sufficiently higher return for the risk inherent in owning individual securities. As ETFs go through the dividends paid by the industry stocks, investors also receive this benefit.

Consider ETFs When Performance Drivers Are Unclear

Often, stocks in a particular sector are prone to dispersed returns. However, investors (or the consultancy firm you are targeting) are unable to consistently (or sufficiently outperform) select those stocks that are likely to continue to outperform. Therefore, they cannot find a way to reduce risk and improve their potential returns by choosing one or more stocks in the sector.

If the company’s performance drivers are harder to understand, you may want to consider the ETF. These companies may have complicated technologies or processesthat make them underperform or do well. Perhaps performance depends on the successful development and sale of a new, unproven technology. The spread of returns is large and the odds of finding a winner can be quite low.

Industries where ETFs are generally a better option

The biotech industry is a good example, as many of these companies depend on the successful development and sale of a new drug. If the development of the new drug does not meet the expectations in the series of studies (FDA in America, AIFA in Italy) the company faces a gloomy future. On the other hand, if the FDA approves the drug, investors in the company can be highly rewarded.

Some commodities and specialist technology groups , such as semiconductors , fall into the category where ETFs may be the preferred alternative. For example, if you feel that now is a good time to invest in the mining sector, you may want to gain industry-specific exposure.

However, let’s assume you are concerned that some stocks may encounter political problems that could hamper their production. In this case, it is advisable to buy in the sector, rather than a specific stock, as it reduces the risk. You can still benefit from growth in the overall industry, especially if it outstrips the overall market.

IN CONCLUSION

When deciding whether to choose stocks or select an ETF, look at the risk and potential return that can be achieved. Stock-picking offers an advantage over ETFs when there is a large dispersion of returns from the average or when your knowledge you or of your advisor has on individual stocks does not achieve satisfactory results (i.e. above average) with continuity . While with stock-picking, you have the ability to gain an advantage using your industry or stock knowledge.

ETFs offer advantages over stocks in two situations. First, when the performance of stocks in the sector has a narrow dispersion around the average, an ETF may be the best choice. Second, if you are unable to gain an advantage through knowledge of the company, an ETF is your best bet.


FINAL IN-DEPTH 
Furthermore, if your historical portfolio performance on individual stocks has not particularly outperformed the sector / company index, you can consider investing in ETFs, even leveraged , taking into account the so-called. ” compounding effect” . 

While the temptation to speculate with leveraged ETFs (or even CFDs) may be strong, it should be clear that they are not meant to be part of a long-term diversified portfolio. If you have a consultant and he puts one of these into your account, you should consider finding another consultant.

If you have included one in an individually managed account or purchased them for your brokerage account, remember that you can take a high risk with your savings (in which case the use of “contained” levers is always advisable ).

You can and will likely lose a significant amount of money if you keep a leveraged ETF. This is because they are designed to be traded in short time frames, such as a trading day. There are leveraged ETFs designed for longer terms, like a month, but that doesn’t reduce the risk you take.

Furthermore, the payoff may not be as high as you imagine , both due to the adverse “compouding” effect on your portfolio return, and due to poor “timing” in the purchase or sale: like any financial instrument (and especially for leveraged ones) Buying after a “dip” offers more opportunities to rise and selling while you are profitable may be a better option than waiting for the first dips.

Azioni vs ETF: quali tenere in portafoglio?



Forse hai deciso di voler investire in un particolare settore. Ora potresti trovarti nella posizione di scegliere tra l’acquisto di azioni o di un fondo negoziato in borsa (ETF).

Fare questa scelta non è diverso da qualsiasi altra decisione di investimento. Come sempre, vuoi cercare modi per ridurre il rischio. E, naturalmente, vuoi generare un rendimento che batta il mercato.

Ridurre la volatilità di un investimento è il metodo generale per mitigare il rischio. La maggior parte degli investitori rinuncia a un potenziale di rialzo per prevenire una perdita potenzialmente catastrofica. Un investimento che offra diversificazione all’interno di un gruppo industriale dovrebbe ridurre la volatilità del portafoglio. Questo è un modo in cui la diversificazione attraverso gli ETF funziona a tuo favore.

Migliorare l’Alpha di Jensen (un obiettivo poco compreso e “mirato”)

L’alfa è la capacità di un investimento di sovraperformare il suo benchmark. Ogni volta che puoi creare un alfa più stabile, sarai in grado di sperimentare un maggiore ritorno sul tuo investimento. C’è una convinzione generale che devi possedere azioni, piuttosto che un ETF, per battere il mercato. Inoltre, molti investitori hanno l’impressione che se acquisti un ETF, sei bloccato a ricevere il rendimento medio nel settore. Nessuna di queste ipotesi è necessariamente vera perché dipende dalle caratteristiche del settore. Essere nel settore giusto può portare anche all’ottimizzazione dell’alfa.

PUNTI CHIAVE

  • La selezione delle azioni offre un vantaggio rispetto ai fondi negoziati in borsa (ETF) quando vi è un‘ampia dispersione dei rendimenti dalla media.

I fondi negoziati in borsa (ETF) offrono vantaggi rispetto alle azioni quando il rendimento delle azioni del settore ha una dispersione ristretta intorno alla media.

  • I fondi negoziati in borsa (ETF) possono d’altro canto essere vantaggiosi se non si è in grado di ottenere un vantaggio attraverso la conoscenza della singola società.

ESEMPIO
Sulla base della tua ricerca ed esperienza, forse hai una buona idea di quanto bene un’azienda sta funzionando. Questa intuizione ti offre un vantaggio che puoi utilizzare per ridurre il rischio e ottenere un rendimento migliore. Una buona ricerca può creare opportunità di investimento a valore aggiunto, premiando l’investitore azionario.

Il settore retail si presta allo Stock Picking

Il settore della vendita al dettaglio è un gruppo in cui la selezione delle azioni potrebbe offrire opportunità migliori rispetto all’acquisto di un ETF che copre il settore. Le aziende del settore tendono ad avere un’ampia dispersione dei rendimenti in base ai particolari prodotti che trasportano. Ciò può creare un’opportunità per lo stock picker perspicace di fare bene.

Ad esempio, supponiamo che tu abbia notato di recente che tua figlia e i suoi amici preferiscono un particolare rivenditore. Dopo ulteriori ricerche, si scopre che l’azienda ha aggiornato i suoi negozi e assunto nuovo personale di gestione del prodotto. Ciò ha portato al recente lancio di nuovi prodotti che hanno attirato l’attenzione della fascia di età di tua figlia. Finora, il mercato non se n’è accorto. Questo tipo di prospettiva (e la tua ricerca) potrebbe darti un vantaggio nella scelta del titolo rispetto all’acquisto di un ETF al dettaglio.

La visione aziendale attraverso una prospettiva legale o sociologica può fornire opportunità di investimento che non vengono immediatamente catturate nei prezzi di mercato. Quando un tale contesto è determinato per un particolare settore – e dove c’è molta dispersione di rendimento – gli investimenti in azioni singole possono fornire un rendimento più elevato rispetto a un approccio diversificato.

Read more

Investire bene o investire male – Datemi una leva (alta) e vi solleverò dalla sedia facendovi perdere un sacco di soldi!

 Investire “bene” o investire “male” significa che, prima di trovare il titolo A che farà meglio in futuro del titolo B, avere a mente anzitutto la gestione del rischio, ovvero del rischio di perdita dei vostri soldi.

LA PERDITA DEL DENARO E LA SUA GESTIONE “EMOTIVA” E’ UNA COSA CHE DOVRETE INDUBBIAMENTE AFFRONTARE NEL CASO VOGLIATE INVESTIRE IN PROPRIO SUI MERCATI.
Guadagnare un 3% quando l’alternativa ha fatto + 8% vi fa avere un po’ di rammarico, ma sempre di guadagno si tratta; il problema è quando anzichè avere +3% (o +30% il ragionamento non cambia) vi trovate un segno “meno”. 
Non starò qui a soffermarvi fin dove tenere la posizione (il cd. “stop loss” su percentuali fisso o “trailing stop”) oppure su come scegliere i titoli. Voglio farvi riflettere sul fatto che vi è una diretta correlazione tra lo stop che vi volete fissare e la leva: 
  • più la leva è alta, più dovrete impostare stop loss “ravvicinati” (es leva 20 lo stop loss non potrà essere matematicamente superiore al 5%, in quanto 5 x 20 = 100% del capitale)..se non capite questo ragionamento commentate!
  •  la leva va sempre utilizzata con “parsimonia” perchè comunque
    • le fluttuazioni fanno parte del mercato (in rete si trovano diversi contributi dove si dice che un rintracciamento di un’azione è fisiologico nell’ordine del 8-12% (il che si traduce con un leva a 3 – neppure troppo spinta rispetto a certi CFD o altri derivati – con una perdita potenziale di ben il 36% del capitale..in un’unica soluzione!)
    • prima o poi si verifica un cigno nero: e questa è una delle poche certezze del mercato, oltre al fatto che il prezzo non sta mai fermo

Un cigno nero è un evento imprevedibile che esula da ciò che normalmente ci si attende in una situazione e che ha conseguenze potenzialmente gravi. Gli eventi Cigno Nero si contraddistinguono per la loro estrema rarità, il forte impatto e la diffusa insistenza e dal fatto di risultare ovvi se esaminati a posteriori’, questo è ciò che scrive Nassim Nicholas Taleb, un trader di Wall Street, nel suo libro ‘Il cigno nero. Come l’improbabile governa la nostra vita’.

Non esistono limitazioni al modo in cui un evento Cigno Nero può manifestarsi, ma si manifesterà. Se siamo “tirati” con la leva , un cigno nero mi distruggerà sistematicamente il portafoglio o meglio sarà l’utilizzo alto della leva che comporterà la distruzione del portafoglio: in altre parole, indipendentemente dalla serie di successi che potrò “infilare” nel mio storico di compravendite, sono io che creo tutte le premesse per distruggere il mio portafoglio, i miei risparmi, semplicemente mettendomi un prosciutto sugli occhi su una delle 2 certezze del mercato azionario.  

Se ignoro il cigno nero e ci vado spregiudicato di leva, sciuramente perderò prima o poi il capitale: questa è la ragione principale per cui il “75% – 80% dei nostri clienti perde soldi”, come scrivono molte società di CFD.  Chi non lo fa è perchè non fa trading frenetico, ma investimento e con leve limitate.

Un esempio: un cigno nero può esservi avverso tranquillamente nell’ordine del 20% . “Ma io vendo prima”..sicuri? guardate solo che l’indice FTSEMIB nel 2020 ha perso il 20% in un solo giorno. 
Quindi se avete leva 1 => perdita 20% , pesante ma accettabile (2 volte il “fisiologico” secondo la discrezione di prima) 
leva 2 => perdita 40%
leva 3 => perdita 60%, oltre la metà del capitale…

Bene oltre al leva 3 non mi spingo, poi queste sono scelte personali e correlate alla volatilità del titolo. 


Azione che consigliamo: Micron Technology (MU) ad un prezzo davvero conveniente!

Le azioni Micron sono scambiate oggi con uno sconto fuori dal comune
Il produttore di chip di memoria Micron Technology ha visto alcuni momenti difficili ultimamente. Permettetemi di chiarire questo punto.
 Le azioni di Micron sono in gravi difficoltà al momento, ma il business è sano come sempre, nonostante la scarsità di chip.

Micron ha generato 2,4 miliardi di dollari di free cash flow e 12,6 miliardi di dollari di utili prima di interessi, imposte, ammortamenti e ammortamenti(EBITDA)negli ultimi quattro trimestri. Questi generosi profitti sono stati generati da $ 27,7 miliardi di entrate top-line. Tutte queste importanti metriche sono aumentate negli ultimi due anni:

Micron ha stabilito molti record operativi nell’anno fiscale 2021 recentemente completato. Le vendite di memorie mobili hanno raggiunto nuovi massimi. Anche i chip di memoria automobilistici e industriali hanno superato le loro vecchie vendite record con margini significativi. Anche il business rivolto ai consumatori ha registrato vendite record quest’anno.
Tutti questi record sono stati raggiunti nel bel mezzo di una crisi manifatturiera a livello settoriale. Micron gestisce i propri impianti di produzione di chip, che aiutano l’azienda a schivare l’ingorgo nelle pipeline di produzione dei principali specialisti di produzione a contratto. Gli aggiornamenti della tecnologia di produzione sono generalmente puntuali e all’interno dei generosi budget infrastrutturali di Micron.
Quindi le operazioni di Micron stanno canticchiando mentre la maggior parte dell’industria dei semiconduttori soffre di restrizioni a livello di produzione. I market maker devono essere impressionati, giusto?
Beh, no. Il titolo di Micron ha arretrato di oltre il 30% dai massimi pluriennali di aprile e viene scambiato a soli 7,9 volte gli utili a termine. In altre parole, le azioni di Micron sono appese nel cestino degli affari di Wall Street, nonostante gli impressionanti risultati di business della società. La società stabilirà il record nel tempo e sarò stupito se i prezzi delle azioni non saranno almeno raddoppiati da questo livello minimo nei prossimi tre anni.


TARGET: POCO SOPRA I 100 $, POTENTIAL UPSIDE: 43%

Why going short is (almost) never a good choice (on stocks)

I’m using the last manouvres (in late!!) of Consob (Italian financial regulatory authority), which have forbidden short position on Italian Stocks, for republishing an old post.

I’ve just changed the title, for a better definition of the matter.

hy going short is immoral (and dangerous)

Indeed, they often close positions after leaving “fire and brimstone” on shares, i.e. after leaving a share with a ridiculously low price (see case of Saipem in recent 12-24 months with price fallen from 20/25 € to €3/4). “Shorters” open only on the basis of their own expected profit (as does every speculator, after all), riding on bad news (other example for us, Italians: the “crisis” of the spread of 2011).

When shorters close their position (i.e. when things start to go for the “right way”.), this leads to sudden and sharp increases in the title, that are only good for speculators rather than investors.

Thirdly, going short leads to excessive pressure on the “bid” part of negotiation book, thus distorting the market

See this table:

—————————————————————————————————-

RISING PRICE 
1) Buy 

————————————

DIMINISHING PRICE

1) Sell
2) Do not buy (lack of liquidity on the market deters new investors and leads to more sales caused by “fear”, to avoid to hold illiquid assets- e.g.. Current market of second houses)
3) Short

—————————————————————————————————–

In this sense, going short involves major irrationality in the markets.
(It’s also true that you can buy shares in leverage, with pressure on the “left” side of the table, but you can also go short in leverage too and therefore these effects are not included in the table because theoretically cancel each other out. But  those who go long  often pay interests, while several broker credit them to shorters).

Finally going short is unfair from the point of view of Rawls (as unacceptable behind “veil of ignorance”): If you “born”as speculators, nothing will change, but if you “born” as investor (like private, pension funds, mutual funds for savings) the presence of short position will tend, –coeteris paribus-, to depress your investments (also in the lifetime of securities within maturity – such as bonds).

Read more

Quando la borsa non è solo movimenti erratici / When Stock Exchange is not only random numbers

Oggi parliamo di Random Walk e moti geometrici browniani di borsa.

 Inizio con una frase: 

Thomas Kuhn: le tesi si sposano per innamoramento.

Ho molto semplificato: può essere, così come è vero che nella mia tesi di laurea ho costruito un modello settimanale di previsione dei prezzi basato sulla regressione lineare multipla con variabili dummies.
Se il modello ha funzionato, questo è il cigno nero popperiano, ovvero il fatto che in fondo i movimenti di borsa non sono così erratici.

Richiamo solamente i 2 grandi filoni teorici sui movimenti di borsa che possono essere:
– random walk (efficienza dei mercati in forma forte), ovvero ci si ricollega ai moti geometrici browniani, ed il risultato è che la variazione del prezzo è di fatto correlata al tempo (cioè un tempo più lungo ed è più facile che il prezzo stesso sia più “distante” dal punto iniziale);
– catene markoviane finite (efficienza dei mercati in forma debole).

Un noto autore – che stimo – utilizza per gli esempi del suo libro un simulatore basato unicamente sulla pura casualità delle serie dei prezzi azionari: ho semplicemente posto a confronto questo simulatore nelle statistiche pù elementari (media e deviazione standard dei ritorni periodali, ovvero giornalieri) con 3 indici di borsa dello stesso periodo.

I risultati sono contenuti nel file “Analisi simulatore prezzi e reale_..”.xlsx contenuto nel consueto repository Depository – da qui potete scaricare gratuitamente tutti i file citati nel blog (newsauciusfinance.blogspot.com)

Come potrete vedere, anche utilizzando la funzione risolutore di excel, cioè cercando di “forzare” i parametri che danno luogo alla casualità non si ottiene mai un valore accettabile di statistiche elementari prossimo a quello reale. In altre parole, il “modello” delle celle “random” non rispecchia il moto delle dinamiche di borsa.
Anche se gli scostamenti di volatilità possono essere accettabili (per quanto si possano usare strumenti più sofisticati, come lo stimatore di volatilità di Yang e Zhang), il cosiddetto drift, cioè la media dei rendimenti, non oscilla attorno allo zero come per le dinamiche di borsa, con variazioni anche triple rispetto al mondo reale (vedi celle in rosso).

Ovviamente si tratta solo di un altro caso nella miriade degli studi presenti, ma in particolar modo l’utilizzo della funzione risolutore non ci ha fatto trovare un esempio che possa avvicinarsi al mondo reale, che rimane comunque affetto da trend (anche se di per sè “fittizi” comunque supportati dagli investitori istituzionali, notizie giornaliere, ecc..).

Concludendo e semplificando, le variazioni dei prezzi di borsa non sono pura casualità, per quanto la configurazione di trend sia, per la natura stessa dei movimenti casuali, la figura di apparizione più statisticamente probabile.

Spero che questo post vi sia piaciuto (e sia stato capito).

=======================================================

English version

Today we will dissert about random walk and Brownian geometrci motion of financial markets.

Starting with a quote: 

Thomas Kuhn: you marry a thesis because you love it.

 I have greatly simplified his thought: it may be, but in my degree thesis I have built a weekly pricing model based on multiple linear regression with dummies variables.If the model worked, this is the Popper “black swan”, or the proof that stock market is not so outrageous.

We only recall the 2 great theoretical lines on the stock market movements that can be:– random walks (ie, the efficiency of markets in strong form), ie, it relates to Brownian geometric motions, and the result is that price variation is in fact related to time (ie longer time, price itself is more “distant” from the starting point);– finite branded chains (weak market efficiency).
A well-known author – I appreciate – uses a simulator based on the examples of his book, based solely on the pure casualty of the stock price series: I simply compared this simulator in elementary statistics (average and standard deviation of periodic returns) with 3 stock indexes of the same period.
The results are contained in the “Real-time and price simulator analysis” file. Xlsx contained in the usual repository Depository – da qui potete scaricare gratuitamente tutti i file citati nel blog (newsauciusfinance.blogspot.com).
As you can see, even using the excel-solver function, that is, trying to “force” the parameters at the origin of randomness, you never get an acceptable value of elementary statistics close to the real world. In other words, the “random model” does not reflect the motion of the stock market.Although volatility variances may be acceptable (as far as more sophisticated instruments could be used, such as Yang and Zhang’s volatility estimator), the so-called drifts, ie average returns, do not oscillate around zero as well as the dynamics of Stock Exchanges, with even triple time variation higher than the real world’s ones (see cells in red).This is only another case in the myriad of the present studies, but in particular the use of the solving function has not build us an example that can fit the real world, which remains in any case affected by trends (even by itself “fictitious” but supported by institutional investors, daily news, etc ..).
Concluding and simplifying, stock price changes are not pure casualties, although the trend configuration is, for the very nature of random movements, the most statistically probable appearance figure.
I hope this post has liked you (and has been understood).

Finanza comportamentale

ERRORI COGNITIVI E INSTABILITÀ DELLE
PREFERENZE NELLE SCELTE DI INVESTIMENTO
LE INDICAZIONI DI POLICY DELLA FINANZA COMPORTAMENTALE
DEI RISPARMIATORI RETAIL

Per non “dimenticare” ripubblichiamo questo utile quaderno di finanza della Consob (n. 66 del 2010).

https://drive.google.com/file/d/0B-e9groMY5S5cVpNVU93c082ZjFLaW1PcWxVdElwNTZMUTZV/view?usp=sharing