The code runs on a 1-minute timeframe, and I do not use StopLoss, TakeProfit, or TrailingStops. What I do use is a kind of emergency stop set at 2% (based on PositionPerf). The decomposition and standard deviation I use have a period of 100 minutes, meaning it looks back 100 minutes. Every minute, the code checks whether a characteristic of the signal crosses a certain threshold. In earlier versions, these thresholds were static, but in the latest version, they are dynamic, based on the aforementioned standard deviation. Only these threshold values have been optimized, and that optimization was done over a dataset of 200k units.
Just had to unload my brain onto a whiteboard before commencing studies. This may take me all year and hopefully be done with indicators. Godspeed to you too @Grahal and anybody else pursuing this direction.
It is a similar type of formula to the one used for an EMA, for example:
EMA[n] = α ⋅ x[n] + (1 − α) ⋅ EMA[n−1]
Both formulas are recursive, meaning that previously calculated values (of the EMA) are used in the current calculation…
Most of the things you describe of your system match perfectly with Ehlers’s works : cycles, DSP, Recursive and non Recursive Filters, even how he uses the stop loss…
“My experience is that a stop
loss will decimate the
robustness of a trading
strategy if it is built into the
strategy and becomes an
integral part of it. Rather, a
stop loss is best left only as a
guard against extremely large
losses. Using a stop loss this
way will maintain the
robustness of the core
strategy you have built. There
are a large number of ways to
implement a stop loss rule.
The simple rule that works
for me is to let the stop value
just be a percentage of the
entry price”
If i understand well what you told us about your system, i think it might look like something like this :
Maybe this link can help you to improve your system. This guy has also embeded the volatility in the Sinewave indicator…
Correct, that matches my experience with a “stop loss” as well — not that I have anything against using a “stop loss”, “take profit”, or “trailing stop”, but it disrupted my system… The most important and commonly used domains in DSP are the “time domain” and the “frequency domain”.
While the “frequency domain” uses the analysis of sinusoids (sine and cosine waves), the time domain deals with changes over time, for example in amplitude (price)…
The “frequency domain” is well suited for analyzing sinusoids, such as in sound/music or anywhere the source of the signal consists of sinusoids. However, I believe the origin of our signal does not come from sinusoids, but from “tick data”… This “tick data” is first made “discrete” (by using timeframes) and can then be analyzed in the “time domain”…
Another factor is that frequency analysis is considerably more difficult and complicated to perform…
So the first choice to make is: do I stay in the “time domain”, or do I conduct my analysis in the “frequency domain”?
Where John Ehlers has clearly chosen to perform analysis in the “frequency domain”, my analysis remains “limited” to the “time domain”, meaning no use of sinusoids or spectrum analysis, for example…
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.
Get Assistance
Assistance Type
Your Need
Proposed Solutions
Do you like cookies? 🍪 We use cookies to ensure you get the best experience on our website.
(Learn more)