Indicatori che guardano al futuro e non (1 Viewer)

tucciotrader

Trader Calabrese
Questo è il mio di codice per Amibroker, ma lo valuto solo per posizioni short...

Codice:
_SECTION_BEGIN("taralluccio");

Len01    =    3;
Len02    =    15;

ema03    =    EMA(C, Len01);
ema15    =    EMA(C, Len02);

color03    =    IIf(ema03  > Ref(ema03, -1), colorGreen, colorRed);
color15    =    IIf(ema15 > Ref(ema15,-1), colorBlue, colorPink);

FlagUP02    =    ema03 > ema15 AND ema03 < L AND Ref(ema03,-1) < Ref(L,-1);
FlagDN02    =    ema03 < ema15 AND ema03 > H AND Ref(ema03,-1) > Ref(H,-1);    

PlotShapes(FlagUP02 * shapeHollowDownArrow, colorGold, 0, H,-20);
PlotShapes(FlagDN02 * shapeHollowUpArrow,  colorGold, 0, L,-20);

_SECTION_END();
 

Users who are viewing this thread

Alto