How we can create EI using elder bull power and elder bear power

how we can create EI using elder bull power and elder bear power

In Amibroker AFL

Elder Bull Power:

_SECTION_BEGIN("Elder Bull Power.afl");
Graph0Style = styleLine;
Graph1Style=styleLine;
Graph0Color=12;
Graph1Color=5;
Graph0 = High - EMA(Close,13);
_SECTION_END();

Elder Bear Power:

_SECTION_BEGIN("Elder Bear Power.afl");
Graph1Style = styleLine;
Graph1Color=16;
Graph1 = Low - EMA(Close,13);
_SECTION_END();

In TradeScript:

Elder Bull Power:

HIGH-EMA(CLOSE,13)

Elder Bear Power:

LOW-EMA(CLOSE,13)

Are you looking above indicator in Amibroker AFL? or Tradescript?