Stockalyze

STOCKALYZE => General Discussion => Topic started by: Sostenes on January 19, 2020, 06:51:00 AM

Title: Ichimoku
Post by: Sostenes on January 19, 2020, 06:51:00 AM
Is that possible, to creat an backtest of Ichimoku on StockAlyze?

Tenkansen;
Kijunsen;
SenkouSpanA;
SenkouSpanB;
ChikouSpan;
Title: Re: Ichimoku
Post by: Sacha on January 19, 2020, 12:50:30 PM
Ichimoku is a complex indicator especially because it also plots into the future rather than present. Maybe we will support it in future (if there is enough requests for it) but I don't see a plan for it at least in near future.
Sorry, but this is what we think as of now.
Title: Re: Ichimoku
Post by: Sostenes on February 02, 2020, 05:00:50 PM
For exemple in ProfitChart is possible to do something like this:

input
PFechamento(Fechamento);

var
Tenkansen : Float;
Kijunsen : Float;
SenkouSpanA : Float;
SenkouSpanB : Float;
ChikouSpan : Float;
DIP: Float;
DIM: Float;

begin

//Média de 9 períodos
Tenkansen := IchimokuCloud(9,26,52)|0|;
//Média de 26 períodos
Kijunsen := IchimokuCloud(9,26,52)|1|;
//Preço 26 atrasado do preço, mercado lateral ela encosta no preço
ChikouSpan := IchimokuCloud(9,26,52)|2|;
//Média de Tenkansen e Kijunsen projetadas 26 para frente
SenkouSpanA := IchimokuCloud(9,26,52)|3|;
//Média projetadas 52 para frente
SenkouSpanB := IchimokuCloud(9,26,52)|4|;
DIP := DiPDiM(9)|0|;
DIM := DiPDiM(9)|1|;


//Sinal de compra com saída quando preço fechar abaixo da Tenkansen
Se
(Tenkansen > Kijunsen) e
(PFechamento > Tenkansen) e
(PFechamento > SenkouSpanA) e
(PFechamento > SenkouSpanB) e
(DIP > DIM )
entao
  PaintBar(clYellow)
senao
//Dave Landry
Se
(PFechamento > Tenkansen) e
(PFechamento > Kijunsen) e
((SenkouSpanA - SenkouSpanB) > -0.25) e
(PFechamento < SenkouSpanA) e
(PFechamento < SenkouSpanB) e
(SenkouSpanA < SenkouSpanB) e
(ChikouSpan > PFechamento[26]) e
//Foca em alvos até a média de 80 períodos com stop abaixo da mínima candle anterior
(PFechamento < Média(80,Close))
entao
  PaintBar(clBlack)
senao
//Reversão baixa
Se (Minima < Lowest(Low,2)[2]) e (Fechamento > Fechamento[1]) então
  PaintBar(clBlue);

end;
Title: Re: Ichimoku
Post by: Sacha on February 04, 2020, 01:17:01 AM
Formula is not the problem. The requirement to plot in the future is the main roadblock to add this indicator to Stockalyze. But there re enough requests and I will consider it.