L2 Candle Pattern Scalper

Level: 2


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.


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.


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

Pros and Cons


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


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.


This is promising but need efforts to refine it.


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.
إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة


i have transfered your script into strategy but the result was not so good, do you have any suggestion?
+4 رد
blackcat1402 Antonio3333
@Antonio3333, could you share me your strategy setting for a check by DM?
Guys @blackcat1402 changed the code and now its useless.
I have the original L2 scalp signals in my profile, check it out!
+2 رد
blackcat1402 gioelepaduano
@gioelepaduano, Quite frankly, I haven't changed any functional code, just added support for the NLX L3 Backtest framework. Please do not exaggerate the non-existent changes: D
this no longer works for me it just shows one big line shame i am a huge fan the back test line seems to be what is messing it up also the buy and sell signals are gone plz dont tell me ull make another version with the signals and charge for it in a few weeks like others.. i will never put down another persons hustle but to have them on it originally just to take them off just to add them back onto a locked version ugh.
+1 رد
gioelepaduano mangelv942
@mangelv942, Hei I have the old L2 scalp version on my profile, check it out
+2 رد
blackcat1402 gioelepaduano
@gioelepaduano, Thank you very much for reposting my script, but it is best to have a copyright statement, which is more open and aboveboard. After all, I spent a lot of time and energy to complete this script. I am helpless for your Ctrl+C and Ctrl+V quick release, but please respect the original author’s work. If you find it useful, at least don’t use insulting words like "useless". Otherwise, is your copy-and-pasted release garbage? Didn't you say this the act of slapped yourself hard?
blackcat1402 mangelv942
@mangelv942, I am very sorry to say that I think you also exaggerated some things. The tone of this conspiracy theory really made me panic. I believe that as long as it is possible to share any content in the TV community, it is worthy of respect, whether it is open source or closed source. Looking forward to your FIRST release of script or idea useful to the TV community, which will have a value that is millions of times higher than suspecting others movtivation, especially who shared a lot of useful info already :D
mangelv942 blackcat1402
@blackcat1402, ugh seems that hit a nerve. Well i was a big fan and its absolutely happens all the time. Something is released then altered such as no alerts then put back up with alerts and a monthly subscription. not a theory its facts i personally do not care how people make money but i actually liked this one and have been learning scalp trading in general. i may not be a pine master but i help people for free everyday in my group. With great results. Anyway bless ya bro and i do hope you reach those millions in the community.
@blackcat1402 this script is becoming one of my daily usable script so for, thank you very much for this. But wants to know how to study this script as per your point of view, have tried lots of options
+1 رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف تعمل مميزات الرسم البياني أسعار العضوية إحالة صديق قوانين الموقع مركز المساعدة حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية مكتبة الرسوم البيانية صغيرة الحجم المدوّنة والأخبار تويتر
ملف التعريف إعدادات الصفحة الشخصية الحساب وإعداد الفواتير الأصدقاء المُحالون العملات الافتراضية تذاكر الدعم الخاصة بي مركز المساعدة التحاليل المنشورة المتابعين تُتابع رسالة خاصة المحادثة تسجيل الخروج