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 world where gaming is one of the most used forms of relaxation, a good number of projects have evolved to give gamers an immersive experience alongside passive earning opportunities to earn from. Through time, there has been a plethora of crypto gaming projects. With AxieInfinity being its progenitor, we have witnessed expansive growth with how certain projects have extended its tentacles. Currently, one of the projects that has caught my eye is $NADA. The project is one of the pioneer gaming models on the Hedera Blockchain Network. Primarily, it seeks to be used in blockchain based NFT mobile games where the latter and metaverses are interconnected seamlessly. Most of the games it is associated with have considerable pedigree in the global market. In a bid to let users earn seamlessly, NADA looks to allow players earn tokens through game play thus projecting gamefi. In the exactitude of real world use-cases, the token can be used for purchasing in game items, et al. Deducing from all of its features, it is incredibly worthy to note that the token has good use cases and tokenomics. In recognition of this, reliable platforms like Bitget have expressed intent to list it along a significant number of activities to earn from, depositing the token is even opened on there already. Conclusively, I'll love to hear your thoughts on this new model? 
    • Blockchain and gaming complement each other nicely. Their fusion has enabled real rewards for gamers, something that traditional games don’t offer. What’s more, BlockchainxGaming effectively manages the ownership and transaction history of game characters, items, etc, enforces property rights, promotes transparency, stability, reliability and improves fun. As blockchain and NFT-based games continue to drive the game market's growth, the hunger to play more and earn more deepens. Nada Protocol is proposing a blockchain technology and ecosystem with customized structure that will fuse with the global mobile game market and NFT blockchain game market, satisfying game players’ cravings with a more immersive mobile game experience where they can own and trade the items they earn from the game. NADA focus seems to be centered around creating a fun blockchain gaming ecosystem that adds the value of economic activity to the pleasure of gameplay. One of the most significant of its core features is a buzzing marketplace where users can conveniently find the items they want and trade them with other users. Much of the activities in Nada marketplace is controlled by NADA token, a reward-type token built on the Hedera network, and currently building up liquidity to list on Bitget. What’s your thought on this fast-growing game and its chances to carve a niche for itself in the competitive gaming world?
    • Thanks very much, @KoketsoIG. I hadn't discovered the drop down menus - it all makes much more sense now! It's odd about the E1 contracts - it must be a new change, because I'm in the UK and I currently hold some of the E1 positions that I opened a few weeks ago. Anyway, at least now I understand what's going on. I'll try not to bother you with too many questions as I get used to the new platform! Best wishes, Cate
×
×
  • Create New...
us