Please review Stockalyze: https://g.page/r/CYw4g9KFTD6FEAI/review.

Ichimoku

Started by Sostenes, January 19, 2020, 06:51:00 AM

Previous topic - Next topic

Sostenes

Is that possible, to creat an backtest of Ichimoku on StockAlyze?

Tenkansen;
Kijunsen;
SenkouSpanA;
SenkouSpanB;
ChikouSpan;

Sacha

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.
Stockalyze Support
Let's be friends

Sostenes

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;

Sacha

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.
Stockalyze Support
Let's be friends