Jump to content

Systematic Swing trading / backtest


Recommended Posts

Hello,

I am working as a quant in the financial markets, I have a background in computer science, big data, machine learning, artificial intelligence.

I have a personal systematic swing trading project. I'm automating and backtesting a strategy based on a cup and handle pattern, i.e. buy on resistance breakout, on a daily basis for now.

I'm making good progress, I have advanced detection of beautiful patterns and the first results are interesting. See image of a trade made automatically, signal: S, entry: ▲, exit: ▼, stoploss in red, rebound on resistance: blue stars.

tradeexemple2.thumb.png.6271204ab977b5247110e20f50dcdacc.png

But unfortunately, I haven't followed any course/training and I have no trading experience on this strategy, so I'm looking for people who are interested in this topic. I still have a lot of things to refine: money management, entry of position, exit of position, management of stops. On each of these points there are plenty of ways to proceed.

So, if you are interested in this pattern type, or want to verify a strategy, I can verify it with a backtest over 40 years, and even then on different markets and different timeframes.

Example of points that I will soon address / refine:

  1. What do you thing about selling half the position when you reach R1?
  2. How many open trades in parallel?
  3. What if all the capital is invested and a new opportunity comes up?
Link to comment

Hi Syswing,

This is good work, I have tried writing code that picks up visual patterns before and it was very hard! Once you have this bit sorted, the other parts should follow fairly easily.

As you have a background in computer science, you know how to write you code in "interchangeable blocks" etc etc. So I suggest keeping it REALLY simple, then updating as you go along. Every part of the trading strategy is important, but imo you will struggle to turn a 60% loss into a winning strategy by tweaking the other parts. So make sure your core idea (entry and exit) is a winner.

1) Exit point: You will want to try a variety of exit points, and maybe a combination based on level and time. For a first attempt, set your sell point at 2x your risk. You will need to do as much work on your exits as you do on your entry.

2) This is linked to total capital usage. Go with 4-6 open trades. If you are following several markets, consider only taking the strongest signals.

3) Good rule of thumb, MAX 2% equity at risk per trade, with 6% at any one time. As trades earn money, consider moving the stop loss up to lock in the PnL, which allows you to open more trades. For a first attempt, just have three trades at 2% equity, and build it up from there.

Link to comment
On 07/10/2020 at 20:08, sysswing said:

Hello,

I am working as a quant in the financial markets, I have a background in computer science, big data, machine learning, artificial intelligence.

I have a personal systematic swing trading project. I'm automating and backtesting a strategy based on a cup and handle pattern, i.e. buy on resistance breakout, on a daily basis for now.

 

A quant that knows about the 3 hardest topics within computer science tries to use a cup and handle pattern. Really?

This is how a quant would ask a question:

https://quant.stackexchange.com/questions/58604/has-a-closed-form-formula-for-the-collateral-choice-option-been-found

 

  • Thought provoking 1
  • Sad 1
Link to comment
1 hour ago, jlz said:

A quant that knows about the 3 hardest topics within computer science tries to use a cup and handle pattern. Really?

This is how a quant would ask a question:

https://quant.stackexchange.com/questions/58604/has-a-closed-form-formula-for-the-collateral-choice-option-been-found

 

Maybe he/she is not actually a quant. A quant would probably know the answer to the questions they had asked. And don't even get started about the compliance aspects! 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • image.png

  • Posts

    • In a strategic move to further solidify its position in the global cryptocurrency market, Bitget, a leading CEX, has made a significant move by appointing Min Lin as its new Chief Business Officer. With a history of leadership at Binance and Goldman Sachs, Lin brings over a decade of expertise to Bitget's ambitious expansion in Latin America. His unique blend of traditional finance and blockchain experience positions him to navigate the complex market dynamics in the region.  Bitget's CEO, Gracy Chen, believes Lin’s expertise is crucial for their strategic vision. “Min’s track record in scaling cryptocurrency businesses aligns seamlessly with our growth goals,” says Chen. In his new role, Lin emphasizes his commitment to innovation and user-focused products. He aims to promote wider acceptance of blockchain technology while tailoring solutions to meet the unique needs of Latin American users. This move underscores Bitget’s commitment to emerging markets. With a 98% increase in active users in Latin America in 2024, the potential for growth is evident. The question remains: how will this move influence the competitive landscape in Latin America?
    • Exchange tokens are a good alternative investment. Unlike regular coins, they provide access to exclusive privileges, including: -Deduction of trading fees, whether in spot or futures trading -Participation in airdrop campaigns, such as Launchpool, Launchpad, PoolX, and others The benefits of holding an exchange token cannot be overstated, yet many users are still unaware of these advantages.  I currently hold some MX, BGB, BNB, and KCS in my portfolio, though I initially knew little about the privileges associated with them. After joining this Bitget online community, I was able to connect with other BGB holders, interact with them, and discover a lot more. The minimum requirement is 100 BGB to gain access to the community, and there's an ongoing campaign with a range of merchandise giveaways. We could take advantage of this campaign as we’re now in Moonvember if you’re holding more than the minimum required amount. I’m not a financial advisor, so always DYOR.
    • Natural Gas Elliott Wave Analysis The late October recovery continues as the commodity has stayed within a sideways price structure since April 2023. Meanwhile, in the meantime, it appears prices will attempt to break the October and June highs of 2024 to retest the January 2024 and October 2023 highs of the range. From the long-term price action, Natural gas completed the bearish impulse wave sequence from August 2022, when it exchanged for $10, in February 2024 at barely $1.5. That was a whooping crash! However, from the perspective of the Elliottwave theory, a 3-wave correction follows a 5-wave trend. It appears the price is correcting the bearish impulse from August 2022. The correction could advance as much as $4.79-5.8. On the daily chart, the correction starts from 1.522 and is emerging into a zigzag structure of the primary degree. Wave ((A)) finished with an impulse structure at 3.16 in June 2024. Since June, the price fell and went sideways suggesting a triangle structure for wave ((B)). Thus, when wave ((B)) ends, wave ((C)) should advance to $4 or higher. On the H4 chart, it appears wave (E) of ((B)) is incomplete. Thus, the pullback from late October could extend to 2.47 -2.35 to complete wave (E) and then price surges to continue the bullish correction that started on February. Technical Analyst : Sanmi Adeagbo Source : Ttadinglounge.com get trial here!  
×
×
  • Create New...
us