Code Monkey home page Code Monkey logo

momgulfing's Introduction

MomGulfing

MomGulfing is a simple momentum and candlestick pattern based trading strategy. Developed on TradingView with PineScript

Trading Decisions

Opens a Long Position When;

  • RED -> GREEN,
  • Green close > previous red high,
  • Green candle volume > previous red candle volume

or

  • RED -> GREEN -> GREEN
  • First green close < previous red high,
  • Second green close > previous red high,
  • Second green candle volume > previous red candle volume

or

  • RED -> GREEN -> GREEN -> GREEN
  • First green close < previous red high,
  • Second green close < previous red high,
  • Third green close > previous red high,
  • Third green candle volume > previous red candle volume

Opens a Short Position When;

  • GREEN -> RED,
  • Red close < previous green low,
  • Red candle volume > previous green candle volume

or

  • GREEN -> RED -> RED
  • First red close > previous green low,
  • Second red close > previous green low,
  • Second red candle volume > previous green candle volume

or

  • GREEN -> RED -> RED -> RED
  • First red close > previous green low,
  • Second red close > previous green low,
  • Third red close < previous green low,
  • Third red candle volume > previous green candle volume

Risk Management

  • First candle's low (for long positions) or high (for short positions) is stop level
  • Take profit level based on Risk-reward: 2.5 (default setting)
  • Leverage is 80/stop_loss_percent. Strategy uses all risk amount for the position. (If risking 1% of portfolio, enter position with that amount)
  • Default pyramiding is 3
  • Update take profit/stop loss levels at each signal.

For more details check momgulfing.pine file

Backtests

Default parameters are used in all backtests, on daily charts. Backtest period: 2021-01-01 -> 2022-12-31

BTC-USDT

BTC-USDT

ETH-USDT

ETH-USDT

BNB-USDT

BNB-USDT

XRP-USDT

XRP-USDT

AVAX-USDT

AVAX-USDT

DOT-USDT

DOT-USDT

Usage (on TradingView)

MomGulfing Strategy

References

License

MIT

momgulfing's People

Contributors

rasimandiran avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.