- Joined
- 28 December 2013
- Posts
- 6,392
- Reactions
- 24,319
@Skate I found an example of an afl that is using a CCIFast and CCISlow cross. May I ask if you are doing something similar, or something simpler than this?
Code:CCISlow=Param("CCISlow",30,30,100,10); CCIFast=Param("CCIFast",10,5,30,5); Buy = Cross( CCI(CCIFast), 0 ) AND CCI(CCIFast) > CCI(CCISlow) ; // plus filters Sell = Cross( 0,CCI(CCIFast)) AND CCI(CCIFast) < CCI(CCISlow);
I would be looking at your FX rate and see if the changes in AUDUSD are affecting your profits.Hi, I am new to stocks. I was wondering if someone could help me please as clearly I don't understand a lot haha.
I am trading equities in U.S stocks on CMC markets, no international fees. I purchased 50 apple stocks @ $129.420 USD per stock = $6471 USD. However my profit and loss section says I paid net $169.42 AUD per share = $130.44 USD in currency conversion. I was expecting that any sale of shares above $129.420 USD would result in profit but this doesn't seem the case?
I've attached it so you can get a better idea of what i'm talking about.
Really appreciate any help! Thanks so much.
(Also if there is a more appropriate section with better visibility please let me know)
I believe the screen would change as the FX changed.So would this screen update as the FX rate updates? For example if I purchased at 0.772 and it is now 0.775.
Would you be able to explain how FX rates work briefly please? If i lock an order for a stock at $100 USD a stock and it is $1 USD to $1.25 AUD, but then by the time the order is executed, it has changed to $1.30 AUD, it means I will pay more than what I originally locked?
Is that right?
@WilsonFisk I found this https://decodingmarkets.com/simple-breakout-system-sector-filter/ Not quite what you wanted but may help. Also a bit more advanced is this http://www.amibroker.com/kb/2016/01...r-categories-that-can-be-used-in-backtesting/I started on 13 February 2020 with my first non-discretionary trading strategy (I call it my 'Active Trading' strategy, as I dont have to be active) which is only a week or two off probably the worst time to start from a sequencing risk point of view. In saying that, I am comfortable around how and more importantly why it performed.
View attachment 118172
It too backs @Skate comment around give it some legs. It started buying back in early June, and time has given it some legs compared to just buying the market as a whole.
The return on this is probably far off, what some others in this thread achieved over that time, but I have been investing my time and resources into 2 small business operations and a young family, so system development is a part time/casual interest.
Sequencing Risk and Index Filters
There are a lot of fund managers and retirement product providers that are banging on about sequencing risk and why its important, understandably a retiree with all their super in a balanced fund retiring at the start of this year would have been drawing income out of their super in a falling market. Not good - but not an issue for me (mortgage and family wont let me retire for a while).
I have put this sequencing risk into context of the index filter discussion, and think that the index filter is a crude method in alleviating this sequencing risk (effectively reducing draw down as per my system above when it flatlined).
More importantly I have also put some thinking into some of @Skate musings in this thread, some of @ducati916 insights and analysis of the markets and sectors over the last 6 months.
What have I learnt though
- That when the proverbial hits the fan, there is unrelenting selling across the board
- The market over the last 12 months has shown there are significant differences between sectors
- That an index filter (XAO as an example) can be good at getting you out of the market, but can be slow getting you back in
- That a filter based on a particular sector can be more appropriate than the broad index eg. XIJ as a filter for tech stocks would have had you back in much sooner
Hopefully food for thought, am I right, maybe or maybe not. I haven't been able to code something like that up yet, but have been loosely apply it to my discretionary trading with success.
I will figure something out.
In the meantime I will continue to use my crude index/vix based GTFO filter on my existing system until it no longer performs within my risk/return expectations and trade pattern
@Skate I found an example of an afl that is using a CCIFast and CCISlow cross.
@investtrader thank you for taking an interest in the "CCI Strategy" & for quickly posting a backtest report.
We now have a base backtest
Development of the "CCI Strategy" will start from here.
Skate.
Universe is All Ords (current list). Looks pretty good.
Is there an error with the index filter portion of the code? this is assuming that the intent of the index filter is to reference the XAO and not the MA of the individual symbol.
Should this:
//=================================================================================
//2. The "Index Filter" - decides when we will trade & also our trailing stop levels
//=================================================================================
MAfilter = MA( C, 10 ); // 10 week lookback period
IndexBuyFilter = C > MAfilter; // Index Filter = ON: When the close is greater than the 10 week simple moving average the Index Filter is ON [trailing stop set to 20%] + [buy + sell signals generated]
IndexSellFilter = C < MAfilter; // Index Filter = OFF: When the close is less than the 10 week simple moving average the Index Filter is OFF [shortens trailing stop to 10%] + [only sell signals generated]
//=================================================================================
//3. Add all our other filters
be this:
//=================================================================================
//2. The "Index Filter" - decides when we will trade & also our trailing stop levels
//=================================================================================
SetForeign( "$XAO.au", True , True ); // I've used the new Norgate Updater (NDU) format - change if the format is different to your data supplier
MAfilter = MA( C, 10 ); // 10 week lookback period
IndexBuyFilter = C > MAfilter; // Index Filter = ON: When the close is greater than the 10 week simple moving average the Index Filter is ON [trailing stop set to 20%] + [buy + sell signals generated]
IndexSellFilter = C < MAfilter; // Index Filter = OFF: When the close is less than the 10 week simple moving average the Index Filter is OFF [shortens trailing stop to 10%] + [only sell signals generated]
RestorePriceArrays( True ); // Restores original price and volume arrays after the call to SetForeign.
//=================================================================================
XLAutomation consulting services
XLAutomation still provides consulting services to supply a copy of the Share Trade Tracker workbook. Their minimum consulting charge is 2 hours @ $140/hr (ex GST) & for that cost, you would receive a copy of the STT workbook & one serial key to activate the product. There is "No Support" offered as part of this charge. If in the future you do require support to enhance or fix an issue then this would incur further consulting service costs.
Skate.
@chips88, Share Trade Tracker is one piece of software I couldn’t live without. The software is perfect (IMHO).Have you had many problems with the workbook in the past Skate? I'm interested in paying the one off, providing its not buggy as hell and I will have to contact them and pay for support each time I have an issue.
Cheers
@stasisbr you can change the code to your heart's content (improvements can be found). When you have a version ready "upload your improved strategy" so others can test it "OR" further improve on it.
Important
So others can see your work - "comment" the changes you have made with (// stasisbr)
Skate.
That was my intent, but I'm curious to know more about investtrader's data setup as I get a different result for backtesting 1/07/2020 - 30/12/2020 using the code as provided. Perhaps someone else can also run a backtest so we have a wider sample.
Data Source is Norgate Platinum, however the code doesn't use the norgate specific functions,
Date range is 1/07/202 - 30/12/2020
Watchlist is All Ords Current only and it has 497 symbols in it.
Pad and Align is on and using XAO.au
Timeframe is weekly
I plan to get involved. Are we running this as a daily or weekly strategy?I have a new project
Sorry, I see it is labeled as a weekly system.I plan to get involved. Are we running this as a daily or weekly strategy?
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?