blackcat1402

L2 Candle Pattern Scalper

blackcat1402 已更新   
Level: 2

Background

Japanese candlesticks provide more detailed and accurate information about price movements compared to bar charts. They provide a graphical representation of the supply and demand behind the price promotions for each period. Each candlestick contains a central part that indicates the distance between the opening and closing of the security being traded, the area called the body.

Scalping is a trading strategy that aims to take advantage of minor changes in the stock price. Traders using this strategy place anywhere from 10 to a few hundred trades in a single day with the belief that small moves in the stock price are easier to catch than large ones. Traders who implement this strategy are known as scalpers. Lots of small wins can easily lead to big wins if a strict exit strategy is used to prevent big losses.

Function

L2 Candle Pattern Scalper utilizes candle pattern to decide long and short entry signal. It use inherent candles' relationship nearby to judge the market trend is up or down and decide to long or short.

Signal

buysmall --> long entry
exitred --> short entry


Pros and Cons

Pros:

1. its response is fast because OHLC candle is the raw source of market
2. it is suitable for scalping because it studies nearby candles to judge very short term trend change


Cons:

1. Mid-long term change is missing from this indicator, although I use fast and slow lines to indicate the mid-term trend.
2. No stop loss or take profit scheme is introduced.


Remarks

This is promising but need efforts to refine it.

Readme

In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.

The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.

Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.

Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.

Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.

Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.

Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
版本注释:
In order to obey the House Rule, remove the irrelevant MA Cross display.
版本注释:
Show colorufl candles to display candle relationship. This need to hide default TV candles in settings to display color candles.
版本注释:
Add backtest scheme for this indicator.
NOTE: the backtest setting is not deeply optimized yet.

#########################################################################################################

Courtesy of @nilux "NLX-L3 Backtest" easy backtest framework for dummies.
Step by step backtest guide with "NLX-L3 Backtest" framework:
STEP1: Add this indicator into your chart
STEP2: Add "NLX-L3 Backtest" into your chart
STEP3: Click "Settings" gear icon of "NLX-L3 Backtest" to select "Select L2 Indicator" in the 1st line as "L2 Candle Pattern Scalper: backtest"
STEP4: Configure your backtest other settings under "NLX-L3 Backtest" framework
STEP5: Click "OK" and view the results in "Strategy Tester" tab
版本注释:
based on some request just to display buy and sell labels again. no code change, just change commented lines back to uncommented state.

Avoid losing contact!Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq 防止失联,请立即行动,加入本猫聊天群: discord.com/invite/ZTGpQJq
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?