Git Product home page Git Product logo

rsi-bands-breaker's Introduction

RSI-Bands-Breaker

Objective: Trade AUD/JPY profitably. May work on other currency pairs as well.

Strategy Type: Breakout Trading

Timeframe: 1-Hour (H1) or 4-Hour (H4)

Indicators:

  1. Bollinger Bands (20 periods, 2 standard deviations)
  2. Relative Strength Index (RSI, 14 periods)
  3. Moving Average (50-period Simple Moving Average)

Entry Rules:

  1. Bollinger Bands Squeeze: Wait for the Bollinger Bands to contract significantly, indicating a period of low volatility. A squeeze must not be more than X distance defined by the user. Default to 20 pips.
  2. RSI Confirmation: When the Bollinger Bands contract, check the RSI. For long trades, the RSI should be above 50, and for short trades, the RSI should be below 50.
  3. Breakout Confirmation: Once the Bollinger Bands expand after a squeeze, place a buy order if the price breaks above the upper Bollinger Band for a long trade, or place a sell order if the price breaks below the lower Bollinger Band for a short trade.
  4. 50 SMA Confirmation: Before executing the trade, you should also confirm the direction of the 50 SMA. The 50 SMA acts as a trend filter to ensure that your trade aligns with the longer-term trend. If the 50 SMA is sloping upwards, it confirms the bullish trend for a long trade, and if it's sloping downwards, it confirms the bearish trend for a short trade.

Position Sizing: Risk no more than a predetermined percentage of your trading capital on each trade (e.g., 1-2%).

Stop-Loss and Take-Profit:

  1. Set a fixed stop-loss level just beyond the opposite Bollinger Band (opposite to your trade direction) from your entry point.
  2. Set a take-profit level based on your risk-reward ratio, typically aiming for a 2:1 or 3:1 risk-reward ratio.

Conclusion

This strategy seems to be profitable for AUD/JPY H1. However, it trades very little to get any meaningful statistics. You are free to play around with the code and see if you can modify it better.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.