31.07.2021 Views

Ultimate Algorithmic Trading System

Using automated systems for trading in stock markets

Using automated systems for trading in stock markets

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If position is short

Take Profit: If close < entry price − 1 ATR BuyToCover MOC

Protective Stop: If close > entry price + 3 ATR BuyToCover MOC

Welles Wilders RSI Failure Swing System p–code

rsiVal = RSI(C,14)

If rsiVal[1] > rsiVal and rsiVal[1] > rsiVal[2] then

rsiPvtHiFound = true

rsiPvtHiVal = rsiVal[1]

else

rsiPvtHiFound = False

If rsiVal[1] < rsiVal and rsiVal[1] < rsiVal[2] then

rsiPvtLoFound = true

rsiPvtLoVal = rsiVal[1]

else

rsiPvtLoFound = False

40

If state = 0 then

if rsiPvtHiFound = true and rsiPvtHiVal > 70 then

state = 1

STOCHASTICS AND AVERAGES AND RSI! OH, MY!

If state = 1 then

state1Val = rsiPvtHiVal

if rsiVal > state1Val then state = 0

if rsiPvtLoFound = true then

state = 2;

If state = 2 then

state2Val = rsiPvtLoVal

if rsiVal > state1Val then state = 0

if rsiPvtHiFound = true then

if rsiPvtHiVal < 70 then state = 3

If state = 3 then

if rsiVal < state2Val then state = 4

If state = 4 then

sellShort this bar on close

state = 0;

If state > 0 and rsiVal < 30 then state = 0

www.rasabourse.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!