- Joined
- 20 November 2005
- Posts
- 787
- Reactions
- 92
Education is something that is done to you. Learning is something you do for yourself.
You should continually seek further knowledge. You can read almost any trading book that has been written and discover gems in them. Yet most people fail to follow them because they forget or are undisciplined to action them. If what you learn leads to knowledge, you become a fool - but if what you learn leads to action, you can become wealthy.
inputs:
fullPosition(1000),
TradeLong(true),
tradeShort(true),
useMovingAverage(true);
variables:
// Indicators
sma200(0),
osc(0),
currentPos(0),
totalPos(0),
lastEntryPrice(0),
// Position Sizing Variables
numShares(0);
// Turn Off IntrabarOrderGeneration
[Intrabarordergeneration = False]
// Run Main Calculations
sma200 = Average(Close,200);
osc = RSI( C, 2 );
// Calculate PositionSize
numShares = round( fullPosition * 0.1 / Close[1], 0);
// Long Only
if tradeLong = true then Begin
if( useMovingAverage = false or close > sma200 ) then begin
if osc<25 and osc[1]<25 and currentcontracts = 0 then begin buy numShares*1 contracts this bar at close; currentPos = 1; totalPos = 1; lastEntryPrice = close; end;
if close<lastEntryPrice and currentPos[1] = 1 then begin buy numShares*2 contracts this bar at close; currentPos = 2; totalPos = 3; lastEntryPrice = close; end;
if close<lastEntryPrice and currentPos[1] = 2 then begin buy numShares*3 contracts this bar at close; currentPos = 3; totalPos = 6; lastEntryPrice = close; end;
if close<lastEntryPrice and currentPos[1] = 3 then begin buy numShares*4 contracts this bar at close; currentPos = 4; totalPos = 10; lastEntryPrice = close; end;
end;
if currentPos > 0 and osc >= 70 then begin Sell all contracts this bar at Close; currentPos = 0; totalPos = 0; lastEntryPrice = 0; end;
end;
// Short Only
if tradeShort = true then Begin
if( useMovingAverage = false or close < sma200 ) then begin
if osc>75 and osc[1]>75 and currentcontracts = 0 then begin sellshort numShares*1 contracts this bar at close; currentPos = -1; lastEntryPrice = close; end;
if close>lastEntryPrice and currentPos[1] = -1 then begin sellshort numShares*2 contracts this bar at close; currentPos = -2; lastEntryPrice = close; end;
if close>lastEntryPrice and currentPos[1] = -2 then begin sellshort numShares*3 contracts this bar at close; currentPos = -3; lastEntryPrice = close; end;
if close>lastEntryPrice and currentPos[1] = -3 then begin sellshort numShares*4 contracts this bar at close; currentPos = -4; lastEntryPrice = close; end;
end;
if currentPos < 0 and osc <= 30 then begin Buytocover all contracts this bar at Close; currentPos = 0; lastEntryPrice = 0; end;
end;
I still don't get it.
Read this, it's important
"Position sizing
defines position sizing method used by MC simulator in "trade list" mode:
Don't change - uses original position size as used during backtest. Keep in mind that it always uses original dollar value of the trade (or whatever currency you use), even if your formula is using percent of portfolio equity.
Fixed size - uses fixed number of shares/contracts per trade
Constant value - uses fixed dollar amount for opening any trade
Percent of equity - uses defined percent of current simulated equity value. Be careful when using this setting - it causes that position size of one trade depends on profits on previous trades (compounding profits) and creates serial dependence. It may also lead to extra compounding effect when you have overlapping trades in your original backtest as bootstrap performs trades sequentially (so they don't overlap). For this reason its use is limited to cases when no overlapping trades occur".
Skate.
There's a piece of the puzzle I'm missing...what is it?
If you can't see the problem, there is no answer.
One point which is slightly confusing and needs confirmation:This is it in a nutshell
I suggest you ask @Nick Radge why the two backtests are so different.
View attachment 150203
Or ask Nick a simpler question
Why have the results for the year 2000 changed so dramatically?
View attachment 150204
To make it a little easier for you to understand
Look & compare the information contained within the red circles, particularly February, March & year to date. If things are still unclear go back & slowly read what I have written previously.
View attachment 150205
Don't post one-liners
Most members ask questions or post a response making a statement as a one-liner, (not all but some) & sometimes their responses are the same, it's unhelpful. If you skim-read my post you'll learn nothing & at times you will "completely miss the point" of what I was trying to get across by jumping to the wrong conclusion.
It takes time
It takes a lot of time & effort to give a "measured response" so all I'm asking is "if you have a question detail it precisely", let me understand why you don't understand as constantly going back & forward with others is tiresome, boring & more importantly, it wastes our time.
Skate.
What you mean as I understand it :
before the latest backtest results provided this month for Nick system, the 2000 BT results were the first row 41.98% annual profit? CORRECT
whereas at the last update report this month, for the same year and system: we got the second row results 19.6% annual profit? CORRECT
Don't think anything to do with the built-in Amibroker charts.There's a piece of the puzzle I'm missing...what is it?
Don't think anything to do with the built-in Amibroker charts.
I'm guessing AB code using optimise to create multiple monte carlo runs and data dumped in a spreadsheet.
Good evening Skate
rcw1 went fishing today. Hot and humid as … 36 C mercury hit… reckon was even hotter out there amongst it in the mangroves.
Just rcw1 and his boat.
Took an IPhone, better half makes rcw1 take it these days, makes her happy in mind should anything happen rcw1 would able to ring for help… Happy partner happy life .., Nice touch, just beautiful , but wouldn’t make any difference mostly no signal. Ha ha ha ha
Skate, what's your problem with ALU?What about this strategy
Buying at support & selling at the resistance level. Now at face value, this strategy looks like a rip-snorter. But alas not so, "as far as I'm concerned". Let's look at the weekly chart of (ASX:ALU).
How could this strategy possibly fail?
Looking at the chart below you would start to believe this idea has legs. But unfortunately, not so.
View attachment 150125
Skate.
Skate, You might be right with ALX but it is a stock that has shown good growth in past years and there's a possible price channel that suggests a rise back to the low $8 mark is possible. The oil price could be the problem for this stock.What about this strategy
Buying at support & selling at the resistance level. Now at face value, this strategy looks like a rip-snorter. But alas not so, "as far as I'm concerned". Let's l
Here is another (ASX:ALX)
Looking at the chart below you would start to believe this idea for a strategy has legs. But unfortunately, not so.
View attachment 150126
Skate.
Skate, what's your problem with ALU?
Excellent gift idea for son loves camping in the Bush.WAY off topic BUT
You NEED one of these
https://www.bcf.com.au/p/acr-resqli...-EWankLod7q1FPgcAoIaAq4sEALw_wcB&gclsrc=aw.ds
I couldn't work this quote out.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?