Analisi Intermarket Le oscillazioni di Tolomeo

Sp500

Nella precedente analisi avevamo ipotizzato che :

Gli oscillatori diretti guardano all'insu' e quindi segnalano la propensione ad un significativo rialzo.
Sul lato inverso viene ovviamente indicata una tendenza opposta, con probabili nuovi massimi che potrebbero innescare il vincolo riba sul T+3 inverso.
Penso pertanto che il 17 aprile potrebbe essere nato il nuovo T+3.

ed ora, a distanza di qualche giorno, manca ancora pochissimo all'innesco dell'ormai certo vincolo riba sul T+3 inverso.
I due ultimi massimi consecutivi hanno infatti condannato al ribasso il terzo T+1 inverso e con lui anche il secondo T+2 inverso.
Gli oscillatori, in crescita sul lato indice e in fase di scarico sul lato inverso, accompagneranno la ulteriore crescita dell'indice.
A questo punto toglierei ogni riserva alla ipotesi che, dal 17 aprile, sia iniziato un nuovo T+3.

Dall'altra parte dell' oceano, sembra che anche gli indici europei stiano allineandosi a quello americano.
 

Allegati

  • Usa500Jun15Daily.png
    Usa500Jun15Daily.png
    53,7 KB · Visite: 482
Ultima modifica:
Ciao vanb.
Tutti i grafici che metto qui sono basati sull'impiego dell'oscillatore Shaff.
Quello di lungo termine e' calcolato sulle barre settimanali.
Quello di medio termine e' calcolato sulle barre giornaliere.
Rispetto alla versione standard che si puo' trovare in rete, mi sono creato una variante per MT4 che, dato un certo timeframe del grafico, puo' plottare l'oscillatore calcolato anche sui time frame superiori (es. su grafico H1 posso mettere oscillatori H1, H4, D1 ecc).
Sul lato inverso uso Shaff "rovesciati", con la semplice formula :
Shaff_inverso = 100 - Shaff_diretto.

Se anche tu usi MT4, posso inviarti i files sulla tua casella privata.

Ciao scusa ma non sono molto esperto io conosco solo Macd e rsi ...sono uguali allo shaft? Dove posso trovarlo facilmente lo shaft? Grazie
 
Oscillatore Shaff (versione base)

Intanto vi metto qui di seguito il sorgente dello Shaff in versione MT4, che ho scaricato dalla rete.
Purtroppo e' un bel "mattone" da convertire ... ma dispongo solo di questo.
Chi ci sa mettere le mani potrà anche personalizzarlo.



//+------------------------------------------------------------------+
// SchaffTrendCycle.mq4 |
//| Copyright © 2011, EarnForex.com |
//| Forex Trading Information, Learn About Forex Trading |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2011, EarnForex.com"
#property link "http://www.earnforex.com"

/*
Schaff Trend Cycle - Cyclical Stoch over Stoch over MACD.
Falling below 75 is a sell signal.
Rising above 25 is a buy signal.
Developed by Doug Schaff.
Code adapted from the original TradeStation EasyLanguage version.
*/

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_minimum 0
#property indicator_maximum 100
#property indicator_level1 25
#property indicator_level2 75
#property indicator_width1 2
#property indicator_style1 STYLE_SOLID
#property indicator_color1 DarkOrchid

//---- Input Parameters
extern int MAShort = 23;
extern int MALong = 50;
extern int Cycle = 10;

//---- Global Variables
double Factor = 0.5;
int BarsRequired;

//---- Buffers
double MACD[];
double ST[];
double ST2[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorShortName("STC(" + MAShort + ", " + MALong + ", " + Cycle + ")");

IndicatorBuffers(3);
SetIndexBuffer(0, ST2);
SetIndexBuffer(1, ST);
SetIndexBuffer(2, MACD);

SetIndexDrawBegin(0, MALong + Cycle * 2);

BarsRequired = MALong + Cycle * 2;

return(0);
}

//+------------------------------------------------------------------+
//| Schaff Trend Cycle |
//+------------------------------------------------------------------+
int start()
{

if (Bars <= BarsRequired) return(0);

int counted_bars = IndicatorCounted();

double LLV, HHV;
int shift, n = 1, i;
// Static variables are used to flag that we already have calculated curves from the previous indicator run
static bool st1_pass = false;
static bool st2_pass = false;
int st1_count = 0;
bool check_st1 = false, check_st2 = false;

if (counted_bars < BarsRequired)
{
for (i = 1; i <= BarsRequired; i++) ST2[Bars - i] = 0;
for (i = 1; i <= BarsRequired; i++) ST[Bars - i] = 0;
}

if (counted_bars > 0) counted_bars--;

shift = Bars - counted_bars + BarsRequired - MALong;

if (shift > Bars - 1) shift = Bars - 1;

while (shift >= 0)
{
double MA_Short = iMA(NULL, 0, MAShort, 0, MODE_EMA, PRICE_CLOSE, shift);
double MA_Long = iMA(NULL, 0, MALong, 0, MODE_EMA, PRICE_CLOSE, shift);
MACD[shift] = MA_Short - MA_Long;

if (n >= Cycle) check_st1 = true;
else n++;

if (check_st1)
{
// Finding Max and Min on Cycle of MA differrences (MACD)
for (i = 0; i < Cycle; i++)
{
if (i == 0)
{
LLV = MACD[shift + i];
HHV = MACD[shift + i];
}
else
{
if (LLV > MACD[shift + i]) LLV = MACD[shift + i];
if (HHV < MACD[shift + i]) HHV = MACD[shift + i];
}
}
// Calculating first Stochastic
if (HHV - LLV != 0) ST[shift] = ((MACD[shift] - LLV) / (HHV - LLV)) * 100;
else {ST[shift] = ST[shift + 1];}

// Smoothing first Stochastic
if (st1_pass) ST[shift] = Factor * (ST[shift] - ST[shift + 1]) + ST[shift + 1];
st1_pass = true;

// Have enough elements of first Stochastic to proceed to second
if (st1_count >= Cycle) check_st2 = true;
else st1_count++;

if (check_st2)
{
// Finding Max and Min on Cycle of first smoothed Stoch
for (i = 0; i < Cycle; i++)
{
if (i == 0)
{
LLV = ST[shift + i];
HHV = ST[shift + i];
}
else
{
if (LLV > ST[shift + i]) LLV = ST[shift + i];
if (HHV < ST[shift + i]) HHV = ST[shift + i];
}
}
// Calculating second Stochastic
if (HHV - LLV != 0) ST2[shift] = ((ST[shift] - LLV) / (HHV - LLV)) * 100;
else {ST2[shift] = ST2[shift + 1];}

// Smoothing second Stochastic
if (st2_pass) ST2[shift] = Factor * (ST2[shift] - ST2[shift + 1]) + ST2[shift + 1];
st2_pass = true;
}
}
shift--;
}

return(0);
}
//+----------------------------------------------------
 

Users who are viewing this thread

Back
Alto