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

    • All Those Token is FAKE The Moment The Token is Live For TRADE On The Exchanges The Price Goes Up Then You Buy At The Top Thinking The PRICE WILL Continue To Go Up And Then What Happen is immediately After You Hit The GREEN Button To Buy The PRICE Starts  GOING DOWN AND Never Back Up Again And You Loss You're Money Thanks What's Fake Token is .
    • You can start by doing research on different exchanges, learning about different cryptocurrencies, and practicing with a small amount of money before investing larger sums. Additionally, there are many online resources, courses, and communities that can help guide you in learning how to trade cryptocurrency.
    • What is Foreign Exchange? Foreign exchange (Forex or FX) is the conversion of one currency into another at a specific rate known as the foreign exchange rate. The conversion rates for almost all currencies are constantly floating as they are driven by the market forces of supply and demand. The most traded currencies in the world are the United States dollar, Euro, Japanese yen, British pound, and Australian dollar. The US dollar remains the key currency, accounting for more than 87% of total daily value traded.Factors that Affect Foreign Exchange Rates Many factors can potentially influence the market forces behind foreign exchange rates. The factors include various economic, political, and even psychological conditions. The economic factors include a government’s economic policies, trade balances, inflation, and economic growth outlook. Political conditions also exert a significant impact on the forex rate, as events such as political instability and political conflicts may negatively affect the strength of a currency. The psychology of forex market participants can also influence exchange rates. The Foreign Exchange Market The foreign exchange market is a decentralized and over-the-counter market where all currency exchange trades occur. It is the largest (in terms of trading volume) and the most liquid market in the world. On average, the daily volume of transactions on the forex market totals $5.1 trillion, according to the Bank of International Settlements’ Triennial Central Bank Survey (2016). The forex market major trading centers are located in major financial hubs around the world, including New York, London, Frankfurt, Tokyo, Hong Kong, and Sydney. Due to this reason, foreign exchange transactions are executed 24 hours, five days a week (except weekends). Despite the decentralized nature of forex markets, the exchange rates offered in the market are the same among its participants, as arbitrage opportunities can arise otherwise. The foreign exchange market is probably one of the most accessible financial markets. Market participants range from tourists and amateur traders to large financial institutions (including central banks) and multinational corporations. Also, the forex market does not only involve a simple conversion of one currency into another. Many large transactions in the market involve the application of a wide variety of financial instruments, including forwards, swaps, options, etc. Foreign currency exchange (forex) A foreign currency exchange rate is a price that represents how much it costs to buy the currency of one country using the currency of another country. Currency traders buy and sell currencies through forex transactions based on how they expect currency exchange rates will fluctuate. When the value of one currency rises relative to another, traders will earn profits if they purchased the appreciating currency, or suffer losses if they sold the appreciating currency.  
×
×
  • Create New...
us