Bitcoin Ninjas 'Ninja Signals' Buy & Sell Alert Trading Strategy

Bitcoin Ninjas 'Ninja Signals' Buy/Sell Alerts & Backtesting TradingView Script
(for Cryptocurrencies, Forex, GunBot, ProfitTrailer, automatic trading software, and more)

Main Script:
-Allows users to easily set automated buy and sell alerts on TradingView for use with automatic and manual trading of cryptocurrencies, Forex securities, and more (alerts are compatible with automatic trading software such as GunBot, ProfitTrailer, and more).
-Synthesizes many powerful indicators [e.g. Relative Strength Index ( RSI ), stochastic RSI , Money Flow Index ( MFI ), Moving Average Convergence Divergence ( MACD ), etc.) into one super script to generate very precise buy and sell signals in almost any market condition.
-Buy arrows (blue) and sell arrows (red) can be changed or hidden for ease of viewing.
-No lag EMA trendline featuring trend-reversal color-coding (white uptrend, black downtrend).
-Adjustable ‘calibration’ setting allows users to customize the script to work for any currency or security available through TradingView, on any exchange, simply by adjusting a number.
-Complete with backtesting strategy version of script which allows users to test various buy and sell strategies based on the alerts the script generates (see info and screenshots below).
-Backtesting strategy incorporates a user-defined adjustable date range, so users can estimate the script’s performance over specific periods of time, such as the last day, week, or month.
-Backtesting strategy utilizes a minimum protective gain setting to help you never sell for a loss. Simply adjust your minimum profit (%) per trade, and the test results will update.
-Backtesting strategy allows for pyramid buying to test various average down / double up buying strategies. Simply adjust the number of pyramid buys and the quantity of each buy.
-Free 7-day trial available for TradingView users who join our free BitcoinNinjas community.
-Free 24/7 support via BitcoinNinjas Telegram GunBot support group with script purchase.
-Fully compatible with GunBot automatic trading software (TradingView plugin is required).
-Special discount available for traders who purchase GunBot automatic trading software and the GunBot TradingView plugin from BitcoinNinjas, allowing for fully automatic trading.
-Contact us via Email or Telegram for more information, to request additional / custom screenshots, or to start your free trial.

Screenshot (Script)
Screenshot (Backtesting Strategy)
Screenshot (Adjustable Calibration, Minimum Profit Per Trade, & Date Range)
Screenshot (Optional Pyramid / Average Down Buying)
Screenshot (Customizable Buy/Sell Arrows & Trend Reversal Line)

DISCLAIMER: By viewing and/or using this TradingView script, you agree to the BitcoinNinjas 'Terms of Use', as presented on our website ( and as stated here. No sharing, copying, reselling, modifying, or any other forms of use, are authorized for this document. This document is strictly for individual use and informational purposes only. This is not financial or investment advice. Investments are always made at your own risk, and are based on yo
Release Notes: REVISION UPDATE 4/7/18

Fixed the repainting / over-alerting problem by upgrading the script's Pine Editor code to version 3 (previously was version 2), and by adding / adjusting a few of the new variables available in version 3. The 'Ninja Signals' script and backtesting strategy are even better now, including for manual traders and those using automatic trading software (e.g. Gunbot), since the buy and sell alerts are more precise now. Thanks to 'Brian S.' and 'MVPMC' for pointing this problem out to me so I could fix it. I will extend all current users' free 7-day trials by restarting the trials today, now that the problem has been fixed.
Release Notes: UPDATE 4/9/18: Applied a minor update to the script this morning by improving the buy-filter settings so the chances of buying on a peak are further decreased. This will further improve the performance of the script. Testing results overnight show that there is not a 100% fix for the small amount of repainting that remains, and this is most likely as good as the script will get after the 95% repainting / over-alerting fix was applied on 4/7/18. The signals are not perfect. No script is 100% perfect, but it works great for our team and we are very happy with it. If you watch the script live by keeping the window open and don't refresh the script, then compare the live buy and sell arrows to the alerts you get, you will see that they line up very good almost always (the buy and sell arrows match with the buy and sell alerts during live performance). Again, try to compare the live buy and sell arrows to the live buy and sell alerts, without refreshing the screen, and you will see that they line up almost always. It is only on refreshing that a small number of buy and sell arrows change or disappear, but that doesn't mean that the alerts were not correct before the refresh. The fix I applied on 4/7/18 has resolved the repainting / over-alerting issue by 95% or more, so the script is even better now than when it was initially released.

Additionally, we recommend NEVER selling for a loss due to the fact that backtesting is only a rough estimate of script performance based on previous dates, not an exact prediction or test of future data. We recommend using a "minimum profit per trade" setting of at least 0.2% when testing the script to guide your live trading, regardless of what trading system you are using (e.g. manual, automatic, etc.). We do not recommend selling for a loss ever because backtesting is only an estimate, not a precise prediction, so attempting to make profit by selling for a loss is far less predictable than only selling for profit every time, even if that means waiting for price to come back up after dropping. Never selling for a loss allows for peace of mind and allows the script to work very well, especially with automatic trading systems like Gunbot trading software, but also with manual trading as well. If you do not have automatic trading software, we recommend Gunbot and are official resellers of the software, and you receive a discount on the script if you purchase Gunbot together with the script. The script works great and has helped us make some very awesome trades so far. I will include some recent examples below.

4/8/2018 4:01 AM
New Binance order
Quantity: 19940
Rate: 0.00000507 BTC
Bought on: 4/7/2018 11:01 PM
Profit: 1.198%

4/7/2018 5:39 AM
New Binance order
Quantity: 250
Rate: 0.00057025 BTC
Bought on: 4/7/2018 2:16 AM
Profit: 1.753%

DISCLAIMER: By using this informational planning script, you agree to the BitcoinNinjas 'Terms of Use', as presented on our website ( and as stated here. No sharing, copying, reselling, modifying, or any other forms of use, are authorized for this script, strategy, or the information published along with it. This planning script and trading guide is strictly for individual use and informational purposes only. This is not financial or investment advice. Investments are always made at your own risk and are based on your own judgement. BitcoinNinjas is not responsible for any losses you may incur. Please invest wisely.
Release Notes: Minor update to maximize the precision of buy and sell arrows. Please re-add the script to your charts, and recreate your alerts, to make sure you are using the most updated version of the script and backtesting strategy.
Release Notes: Removed redundant non-functional code for clarity (will not impact performance).
Release Notes: Minor update regarding precision of buy and sell arrows. Please remove and re-add the script and backtesting strategy to ensure you are using the most updated version.
Release Notes: Minor update: Increased strictness of buy and sell filters. As always, re-add the script and recreate your alerts if you wish to take advantage of this update.
Release Notes: Minor update preventing buy and sell arrows from appearing together on same candle during volatile intra-bar market conditions. As always, please re-add the script and recreate your alerts if you wish to take advantage of this update.
Release Notes: Bitcoin Ninjas 'Ninja Signals' Buy/Sell Alerts & Backtesting TradingView Script v2.0 has been released!

'Ninja Signals' v2.0 (STRATEGY)
'Ninja Signals' v2.0 (SCRIPT)

-No repainting. Buy/sell arrows match with alerts, even after the script or chart has been refreshed.

-Now featuring a user-defined adjustable stop loss setting for additional trading strategy planning.

-Script versions 1.0 and 2.0 both included with free 7-day trial and optional license purchase.
Release Notes: Added:

Heikin-Ashi candle on/off switch (script & strategy)

'Only Buy if RSI < 70' on/off switch (script & strategy)

'No Buys if Downtrend' on/off switch (script & strategy)

'Only Sell for Profit' on/off switch (strategy only)

Adjustable 'Stop Loss' setting (strategy only)

Note: 'Ninja Signals' v2.0 Script and Strategy are now available, which are the non-repainting versions of 'Ninja Signals' v1.0. Please see the links below.

'Ninja Signals' v2.0 (SCRIPT)
'Ninja Signals' v2.0 (STRATEGY)
Release Notes: Added:

RSI Buy Filter is now adjustable, user-defined

Downtrend EMA Buy Filter is now adjustable, user-defined

Date Range Filter now features an on/off switch for ease of use

Default transaction fee of 0.05% per trade now factored into net profit of backtesting strategy
Release Notes: New Features Added:

-Stop Loss is now an alertable condition, allowing traders to create alerts that fire whenever stop limit is hit (orange square on chart).

-Trailing Stop (stop loss from last sell arrow) can now be enabled instead of regular stop loss (from last buy arrow) by checking an on/off box.

-Trailing Stop option also added to backtesting strategy so traders can compare regular stop loss versus trailing stop loss during testing.
Release Notes: Added 'RSI Sell Filter' to accompany RSI Buy Filter, giving traders precise control over both buy and sell arrows/alerts.
Release Notes: Improved backtesting strategy interpretation of stop loss sell points.
Release Notes: New Features Added:

-EMA Downtrend Filter (corresponds to black and white EMA trend line seen on graph)

-Stochastic RSI Cutoff Filter

-Stochastic RSI Trend Filter

-MACD Trend Filter

-MFI Trend Filter

-Donchian Channel Filter
Release Notes: New Feature Added: Margin trading (longs and shorts) on/off switch added to backtesting strategy.
Release Notes: Minor update to clarify alertable stop loss for bars where a sell arrow also occurs
Release Notes: Minor update modifying labels of various features of script for improved clarity and ease-of-use.
Release Notes: Minor update to alertable stop loss
Release Notes: Added 'Take Profit' feature and modified 'Stop Loss' to work in both directions when margin trading
Release Notes: Minor update to improve performance when using regular candles with the Heikin-Ashi calibration box checked.
Release Notes: Minor update
Release Notes: New Feature Added: Optional 1:1 Buy:Sell Arrow Ratio
Release Notes: 6/16/18 Update: Increased range of Take Profit feature to allow maximum setting of up to 500% profit per trade for swing trading
Release Notes: New Feature Added: optional Awesome Oscillator Buy & Sell Filters
Release Notes: New Features Added:
-Ichimoku Cloud Filter
-RSI Divergence Filter
-Squeeze Oscillator Filter
-Aroon Oscillator Filter
-Bollinger Band Filter
-Keltner Channel Filter
-New Label Descriptions
Release Notes: New Features Added:

-MACD Cutoff Filter
-MFI Cutoff Filter
-Default values added to labels
Release Notes: Minor Update
Release Notes: Minor update to Donchian channel filter
Release Notes: Minor Update 9/15/18: Added Commodity Channel Index (CCI) buy and sell filters
Release Notes: Update 2/9/19:
-Added optional Trailing Take Profit feature to existing Take Profit
-Updated Bollinger Band and Keltner Filters to increase effectiveness
-Adjusted default backtesting properties to ensure compatibility with atypical trading pairs
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact Bitcoin_Ninjas for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it until you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Public Library.

Want to use this script on a chart?

Warning: please read before requesting access. | Profit While You Sleep


I paid for a month of the signals. How do I get access to them?
+4 Reply
@vapeatl, Check your email!
+1 Reply
vapeatl Bitcoin_Ninjas
@Bitcoin_Ninjas, I see nothing except for my receipt. Nothing in junk mail either.
+1 Reply
@vapeatl, I'm sure you got this figured out, correct?
+1 Reply
Can I use it for stocks and Crude oil?
+3 Reply
Bitcoin_Ninjas GuruprasadVelip
@GuruprasadVelip: yes. someone is currently using our script for gold and oil.
+1 Reply
Hey can i get access please? I Favorited both the scripts and the backtesting page and thumbs up them like it says on the website. Please grant trial to me :)
+3 Reply
@blyz: sure, will message you.
+1 Reply
can i access please
+1 Reply
@ckd82, Sending you a private message!
+1 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar About Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter