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.

EasyLanguage Code for TA1

inputs:

cmiLen(20),cmiSmooth(9),markCondIndicVal(50),chopBuyPer(.5),

chopSellPer(.5),trendBBOLen(9),trendSBOLen(9);

inputs: volLen(20)

value1 = choppyMarketIndex(cmiLen);

value2 = xaverage(value1,cmiSmooth);

if value2 < markCondIndicVal then

begin

buy("ChopBuy")next bar at highest(h,trendBBOLen) stop;

sellshort("ChopSell") next bar at lowest(l,

trendSBOLen) stop;

end;

if value2 >= markCondIndicVal then

begin

buy("TrendBuy") next bar at c + xaverage(range,

volLen)*volPer stop;

sellShort("TrendSell") next bar at c

- xaverage(range,volLen)*volPer stop;

end;

EasyLanguage Code for TA2

Inputs: buyLen(40),sellLen(40),longLiqLen(20),sellliqLen(20);

Buy next bar at highest(h[1],buyLen) stop;

Sellshort next bar at lowest(l[1],sellLen) stop;

If Marketposition = 1 then sell next bar at lowest(low[1],

longLiqLen) stop;

If Marketposition = -1 then buytocover next bar at

highest(high[1],sellLiqLen) stop;

333

TRADESTATION AND EASYLANGUAGE

EasyLanguage Code for TA3

inputs:movAvgLen(50),pivotHiLookBack(10),pivotHiStrength(2),

pivotLowLookBack(10),

pivotLowStrength(2);

inputs: LprofitObj(500),LstopLoss(500),longExitDays(10),

SprofitObj(500),

SstopLoss(500),shortExitDays(10);

www.rasabourse.com

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

Saved successfully!

Ooh no, something went wrong!