ProRealCode - Trading & Coding with ProRealTime™
Making this post to share tips for creating automated trading strategies and my thoughts. My approach to automated trading is it shouldnt be trying to copy a human traded strategy. Translating human trading to automated systems is challenging due to factors like intuition that can’t be easily coded. I think automated trading requires a completely different mindset. It should maximize its strengths, particularly in short timeframe trading. I prefer not to code swing trading strategies over multiple days because I can do that better manually. Instead, automated trading should find trades that we might miss due to mental exhaustion or the inability to process multiple pieces of information simultaneously.
What I and probably most people currently lack are creative ideas. Rather than sharing complete strategies, which people wont do, esp with the marketplace (I wouldnt either if i had a winner). I think we should share concepts and experiences. Let’s discuss what you think works and what doesn’t, and see if we can collaborate. Heres some of my inital thoughts and tips-
Entries
Most indicators I’ve found are useless. If an indicator works on one market but not another, it will eventually fail. I’ve stopped using traditional indicators for entry signals since they’ve been tried in all combinations. It may work it may not, it may work for a week or a year and fail utterly. I now code entries based on price actions, such as simple high/low or fractals. Price action entries work across most stocks and are fundamental to trading and have been consistent since the beginning of markets.
Noise
A major issue we face is market noise. How do we code what humans can easily see? We can visually distinguish trending from ranging markets dynamically, but coding this is difficult because it’s always fixed. I started experimenting with entries on very close timeframes, like 1 minute and 55 seconds, to confirm signals. If it works on 1 minute, it should work on 55 seconds. I find it helps to filter out some bad or sporadic signals.
Exit
I find exit strategies to be as important, if not more important, than entries. Fixed exits, like 20 points in a dynamic market, are not sustainable long-term. I’ve been using 2 Supertrend with different values to combat noise as my standard exit strategy. I think most effort goes into creating a exit strategie/money management.
Backtesting Optimising values always leads to failure (in my experience). Even walkforward, monte carlo (different software) etc. Optimising values of an indicator (back to my first point) and deploying the strategy just fails. I have just been using the optimisastion system to find strategies on different markets. Eg if option1=0, if option2=1 to test different indicators or snippets of code. Mainly to quickly filter out code that dosent work. To compare different snippets eg direrent exit strategies etc. These are just a few thoughts from my personal experience. What is your experience from automated trading?What always amazes me is that no one examines the data…
What are the characteristics of the index/stock data you use and do these characteristics change when I use a different time frame, for example…
The data is the basis and before you start with indicators and patterns, you will first need to know what kind of data you are dealing with…(trending, ranging, random, mixed…)
Go with the big money… ideally SP500 only long. That way you’re on the safe side. No matter whether scalp, swing or mean reverse.I like your tips Phoentzs. Will have a look into it. But before that. Do you have a favorite trailingstopploss-code?
Noise I started experimenting with entries on very close timeframes, like 1 minute and 55 seconds, to confirm signals. If it works on 1 minute, it should work on 55 seconds. I find it helps to filter out some bad or sporadic signals. Exit I’ve been using 2 Supertrend with different values to combat noise as my standard exit strategy.I found this subject very intressting. Would you like to expain the qouted text more?
Noise A major issue we face is market noise. How do we code what humans can easily see? We can visually distinguish trending from ranging markets dynamically, but coding this is difficult because it’s always fixed. I started experimenting with entries on very close timeframes, like 1 minute and 55 seconds, to confirm signals. If it works on 1 minute, it should work on 55 seconds. I find it helps to filter out some bad or sporadic signals.How do you combine 1 minute and 55sec in same strategy? Its not multiples of eachother and doesnt work as MTF
Do u use MTF? Do u use 1 priceaction and then filters on higher timeframes or what have u found that works best? Any favorite timeframe and indice?Sometimes I use MTF, but mainly for a simple longtrend, like above daily SMA200. I havent had much success with implementing a strategy workflow with MTF in it unfortunlately. Do you have any tips on how to use MTF in your favor? Nasdaq seem to be the easiest to create strategies for me. Simple long trend-following. Also I have some for DAX and SP500. 1-5 minute timeframe. What are you trading mainly and what are your best strategy tips?
When I create an algorithm, I always start withDo u use MTF? Do u use 1 priceaction and then filters on higher timeframes or what have u found that works best? Any favorite timeframe and indice?Sometimes I use MTF, but mainly for a simple longtrend, like above daily SMA200. I havent had much success with implementing a strategy workflow with MTF in it unfortunlately. Do you have any tips on how to use MTF in your favor? Nasdaq seem to be the easiest to create strategies for me. Simple long trend-following. Also I have some for DAX and SP500. 1-5 minute timeframe. What are you trading mainly and what are your best strategy tips?
CumulateOrders = False to prevent the accumulation of multiple orders. To ensure the algorithm’s robustness, I also test it with CumulateOrders = True. If the algorithm still produces a smooth equity curve and avoids significant losses during backtesting, I know I’m on the right track with a sustainable strategy.
So, SnorreDK is curious and wants Monochrome to elaborate on their strategies for dealing with “noise” in trading signals. Monochrome mentions two specific techniques:Noise I started experimenting with entries on very close timeframes, like 1 minute and 55 seconds, to confirm signals. If it works on 1 minute, it should work on 55 seconds. I find it helps to filter out some bad or sporadic signals. Exit I’ve been using 2 Supertrend with different values to combat noise as my standard exit strategy.I found this subject very intressting. Would you like to expain the qouted text more?
Sharing automated strategy tips
This topic contains 14 replies,
has 9 voices, and was last updated by hansbalistreri
7 months, 3 weeks ago.
| Forum: | General Trading: Market Analysis & Manual Trading |
| Language: | English |
| Started: | 07/06/2024 |
| Status: | Active |
| Attachments: | No files |
The information collected on this form is stored in a computer file by ProRealCode to create and access your ProRealCode profile. This data is kept in a secure database for the duration of the member's membership. They will be kept as long as you use our services and will be automatically deleted after 3 years of inactivity. Your personal data is used to create your private profile on ProRealCode. This data is maintained by SAS ProRealCode, 407 rue Freycinet, 59151 Arleux, France. If you subscribe to our newsletters, your email address is provided to our service provider "MailChimp" located in the United States, with whom we have signed a confidentiality agreement. This company is also compliant with the EU/Swiss Privacy Shield, and the GDPR. For any request for correction or deletion concerning your data, you can directly contact the ProRealCode team by email at privacy@prorealcode.com If you would like to lodge a complaint regarding the use of your personal data, you can contact your data protection supervisory authority.