- Joined
- 13 September 2013
- Posts
- 988
- Reactions
- 530
This is my results on my code 2016-now
clearly a single run but you get a idea
Capital = Param("Start Capital", 100000, 10000, 100000, 2000);
SetOption("InitialEquity", Capital);
ATRPeriod = Param("ATR Period (Risk)", 45, 5, 50, 1);
ATRMultiple = Param("ATR Multiple (Risk)", 2.5, 1, 10, 0.5);
ATRAmount = ATRMultiple * MA(ATR(1), ATRPeriod);
Risk1 = Param("Dollar Risk", 1400, 100, 20000, 100);
PS = (Risk1/ATRAmount )* BuyPrice;
PSLimit = Param("Position Size Limit", 10000, 1000, 100000, 500);
PositionSize = IIf(PS < PSLimit, PS, PSLimit);
IndexClose = Foreign("XAO", "C");
IndexMA = MA(IndexClose, 75);
GoLong = IndexClose > IndexMA;
PositionScore = Correlation(IndexClose, C, 20);
SetTradeDelays(1,1,1,1);
Turnover = MA(C * V, 5) > 1000000;
///// BBO \\\\\
MA100 = MA(C, 100);
MAStDev = StDev(C, 100);
UpperBand = MA100 + 3 * MAStDev;
LowerBand = MA100 - 1 * MAStDev;
Buy = C > Ref(UpperBand, -1) & GoLong & Turnover; //Cross(C, UpperBand)
Sell = C < Ref(LowerBand, -1); //Cross(LowerBand, C)
Code:Capital = Param("Start Capital", 100000, 10000, 100000, 2000); SetOption("InitialEquity", Capital); ATRPeriod = Param("ATR Period (Risk)", 45, 5, 50, 1); ATRMultiple = Param("ATR Multiple (Risk)", 2.5, 1, 10, 0.5); ATRAmount = ATRMultiple * MA(ATR(1), ATRPeriod); Risk1 = Param("Dollar Risk", 1400, 100, 20000, 100); PS = (Risk1/ATRAmount )* BuyPrice; PSLimit = Param("Position Size Limit", 10000, 1000, 100000, 500); PositionSize = IIf(PS < PSLimit, PS, PSLimit); IndexClose = Foreign("XAO", "C"); IndexMA = MA(IndexClose, 75); GoLong = IndexClose > IndexMA; PositionScore = Correlation(IndexClose, C, 20); SetTradeDelays(1,1,1,1); Turnover = MA(C * V, 5) > 1000000; ///// BBO \\\\\ MA100 = MA(C, 100); MAStDev = StDev(C, 100); UpperBand = MA100 + 3 * MAStDev; LowerBand = MA100 - 1 * MAStDev; Buy = C > Ref(UpperBand, -1) & GoLong & Turnover; //Cross(C, UpperBand) Sell = C < Ref(LowerBand, -1); //Cross(LowerBand, C)
SetOption("InitialEquity", 100000);
SetOption("CommissionAmount", 29.95);
PositionSize = -100/20;
IndexClose = Foreign("XAO", "C");
IndexMA = MA(IndexClose, 75);
GoLong = IndexClose > IndexMA;
PositionScore = mtRandom();
SetTradeDelays(1,1,0,0);
TurnoverLiquidity = MA(C * V, 7) > 500000 & MA(V, 7) > 500000 ;
///// BBO \\\\\
MA100 = MA(C, 100);
MAStDev = StDev(C, 100);
UpperBand = MA100 + 3 * MAStDev;
LowerBand = MA100 - 1 * MAStDev;
Buy = C > Ref(UpperBand, -1) & GoLong & TurnoverLiquidity;
Sell = C < Ref(LowerBand, -1);
Thanks. Found the core criteria for all strategies in the book. Don't have Dividend data for the periods held. Couldn't find any reference to PositionScore???
Code:SetOption("InitialEquity", 100000); SetOption("CommissionAmount", 29.95); PositionSize = -100/20; IndexClose = Foreign("XAO", "C"); IndexMA = MA(IndexClose, 75); GoLong = IndexClose > IndexMA; PositionScore = mtRandom(); SetTradeDelays(1,1,0,0); TurnoverLiquidity = MA(C * V, 7) > 500000 & MA(V, 7) > 500000 ; ///// BBO \\\\\ MA100 = MA(C, 100); MAStDev = StDev(C, 100); UpperBand = MA100 + 3 * MAStDev; LowerBand = MA100 - 1 * MAStDev; Buy = C > Ref(UpperBand, -1) & GoLong & TurnoverLiquidity; Sell = C < Ref(LowerBand, -1);
Thanks. Found the core criteria for all strategies in the book. Don't have Dividend data for the periods held. Couldn't find any reference to PositionScore???
Code:SetOption("InitialEquity", 100000); SetOption("CommissionAmount", 29.95); PositionSize = -100/20; IndexClose = Foreign("XAO", "C"); IndexMA = MA(IndexClose, 75); GoLong = IndexClose > IndexMA; PositionScore = mtRandom(); SetTradeDelays(1,1,0,0); TurnoverLiquidity = MA(C * V, 7) > 500000 & MA(V, 7) > 500000 ; ///// BBO \\\\\ MA100 = MA(C, 100); MAStDev = StDev(C, 100); UpperBand = MA100 + 3 * MAStDev; LowerBand = MA100 - 1 * MAStDev; Buy = C > Ref(UpperBand, -1) & GoLong & TurnoverLiquidity; Sell = C < Ref(LowerBand, -1);
For rnr ...
Test 1 (left) without exrem, Test 2 with exrem.
one problem with this system is it would be mentally hard to trade. a2m has a +200% open profit but look how far the stop is, basically 50% below current levels. But results show it's not too bad if you can ride the wave..
View attachment 72979
one problem with this system is it would be mentally hard to trade. a2m has a +200% open profit but look how far the stop is, basically 50% below current levels. But results show it's not too bad if you can ride the wave..
View attachment 72979
Lies, damned lies and statistics.
The regression line on the all ords accumulation index returned 24.6% CAGR over the 03 to 07 bull market.
The real strength of any trend following system is the switching to cash to reduce the depth of draw down – the delay in switching back out of cash is the cost on the up legs.
Why didn’t you not keep going with it and wait for the next signals?
How would it have fared in the 10-12 sideways noise?
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.