guikroth

BB_Buy and Sell

New
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

HI, Can you please tell me in which time frame it works best?
+23 Reply
pavan9k BunnyTheTrader
@Pavan Basha TheTraders, 15 min
Reply
Why so many "Buy" under alert condition?? Just curious thank you. Great job looks great!

// === /PLOTTING ===

// Send alert to TV alarm sub-system
alertcondition(LONG,title="Buy",message="Buy")
alertcondition(LONG,title="Buy",message="Buy")
alertcondition(LONG,title="Buy",message="Buy")
alertcondition(SHORT,title="Sell",message="Sell")
+6 Reply
guikroth TopNotchCrypto
@TopNotchCrypto, Hi man! I just because, depending tha resolution of screen the computer, some buy alerts stay "invisible", hiden... So, this way, it dont happen.
If you search for some aleatory script with alerts, you will see that the alerts dont exist. it just because they only set one alert for each condition. Maybe in your monitor not, but trading view have this issue. I not write very well in english, so, if you didn't understand something, just say. Thanks man!
+1 Reply
guikroth TopNotchCrypto
@TopNotchCrypto, continuing....
if you are only seeing an alert buy and a sell at the time of creating the alert then it means that the resolution of the trading view on your monitor presents this problem, and the way I wrote the script you did not realize the error. However, if I had just placed a buy or sell sign, you would not be able to create the alerts, because you would not see them.
Reply
@guikroth, Thank you for the explanation. I just wasnt sure I totally understand. Awesome job my friend. Keep up the great work.
Reply
guikroth TopNotchCrypto
@TopNotchCrypto, Thanks Man! Try the Range Filter By Donovan and mixed by me
Reply
Is it possible to somehow insert both buy and sell into one condition so that only the message changes from this?

like so, but wthout error)
alertcondition(SHORT or LONG,title="Trade",message=(SHORT)?"Sell":"Buy")
+1 Reply
This absolutely does repaint, I literally just watched it happen a moment ago. Thankfully I only paper trade when testing a new indicator or strategy, but advertising this as 'no repaint' is inaccurate and can cause a loss if someone trusts this script not knowing that it repaints.
Reply
repaint?
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
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out