How to Send Alerts from Tradingview to Telegram I found a new way for sending alerts from tradingview to telegram channel or telegram group by using webhook. I’ve been looking for a while and most of the ways had problems. Some of them had delays in sending the alerts and were not secure because they were using public bots. Some of them required money and were not free. Some of the ways needed coding knowledge. The way I recommend does not have these problems.
It has three simple steps:
1. Creating a telegram channel or group;
2. Creating a telegram bot by using botfather;
3. Signing in/up in pipedream.com.
I made a video for presenting my way. I hope it was helpful and if you have any questions make sure to comment so I can help you.
Thank you!
Bots
How To Make Money With Crypto Trading BotsWe are at the beginning of a huge crypto bull run when it is possible to make millions of dollars with strong altcoins. So how is it possible to know if an altcoin strong or it is weak?
Look at the community around the altcoin you want to profit with. I prefer to count the traffic which comes to its official website first. Is the traffic rising or it is falling?
Also look at the altcoin's twitter and discord. How people react to the news. Do they write many comments or not?
But the most important thing is which funds have invested into the altcoin.
Lets look at the biggest gainers from the previous bull run. I remember Solana, THETA, Polkadot, Cosmos etc.
I prefer altcoins which were funded by Tier 1 funds. At least one or two (there are only 22 Tier 1 funds in the market now).
After that I look at the chart. I don't want to buy altcoins that are already overpriced.
One of the best examples of altcoins I have found for accumulation for the future bull run is APTos. It is not very expensive, have the great community, valuable traffic to its official website and so on.
We will need to find 10 - 15 altcoins like APTos to make our millions of dollars. And I will help you to find the most profitable ones.
The best way to accumulate an altcoin I have found is starting a position with a grid trading bot. It is the most simple yet very powerful tool you can use to get as much altcoins as possible before it is not too late.
Why I prefer to use grid trading bots? Because these bots can accumulate literally "free" altcoins for me. Here is how I use grid trading bots.
First I need to define the range for trading and second - how many orders will trading bot have.
And with APTos the low price for the trading is $ 3 and the high one is $ 25.
The number of open orders are 100. And the profit is 0.72% ~ 7.16% per grid.
So what is the goal? The trading bot should return to me all the money I invested and also it should give me a certain number of APT coins before I close it.
After that I can start a new trading bot position with the USD the bot have made for me and keep APT coins for the bull market to sell at the best price.
Do you like the strategy I use to accumulate strong alcoins for the crypto bull run?
3rd Pine Script Lesson: Open a command & send it to a Mizar BotWelcome back to our TradingView tutorial series! We have reached lesson number 3 where we will be learning how to open a command on TradingView and send it to a Mizar Bot.
If you're new here and missed the first two lessons, we highly recommend starting there as they provide a solid foundation for understanding the concepts we'll be covering today. In the first lesson, you will be learning how to create a Bollinger Band indicator using Pine Script:
In the second lesson, you will be guided through every step of coding the entry logic for your own Bollinger Band indicator using Pine Script:
In this brief tutorial, we'll walk you through the process of utilizing your custom indicator, Mikilap, to determine the ideal timing for sending a standard JSON command to a Mizar DCA bot. By the end of this lesson, you'll have the ability to fine-tune your trading strategies directly on Mizar using indicators from TradingView. So, sit back, grab a cup of coffee (or tea), and let's get started!
To establish a common starting point for everyone, please use the following code as a starting point. It incorporates the homework assignment from our Pine Script lesson number 2. By using this code as our foundation, we can collectively build upon it and delve into additional concepts together. So, sit back, grab a cup of coffee (or tea), and let's get started!
// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// Mizar Example Code - Lesson I - Coding an indicator
// version 1.0 - April 2023
// Intellectual property © Mizar.com
// Mizar-Killer-Long-Approach ("Mikilap")
//@version=5
// Indicator script initiation
indicator(title = "Mizar-Killer-Long-Approach", shorttitle = "Mikilap", overlay = true, max_labels_count = 300)
// Coin Pair with PREFIX
// Bitcoin / USDT on Binance as example / standard value on an 60 minutes = 1 hour timeframe
string symbol_full = input.symbol(defval = "BINANCE:BTCUSDT", title = "Select Pair:", group = "General")
string time_frame = input.string(defval = "60", title = "Timeframe:", tooltip = "Value in minutes, so 1 hour = 60", group = "General")
int length = input.int(defval = 21, title = "BB Length:", group = "Bollinger Band Setting")
src = input(defval = close, title="BB Source:", group = "Bollinger Band Setting")
float mult = input.float(defval = 2.0, title="BB Standard-Deviation:", group = "Bollinger Band Setting")
float lower_dev = input.float(defval = 0.1, title = "BB Lower Deviation in %:", group = "Bollinger Band Setting") / 100
int length_rsi = input.int(defval = 12, title = "RSI Length:", group = "RSI Setting")
src_rsi = input(defval = low, title="RSI Source;", group = "RSI Setting")
int rsi_min = input.int(defval = 25, title = "", inline = "RSI band", group = "RSI Setting")
int rsi_max = input.int(defval = 45, title = " < min RSI max > ", inline = "RSI band", group = "RSI Setting")
// Defintion of a Pine Script individual function to handle the Request and avoid Repainting Errors
Function_Mikilap(simple string coinpair, simple string tf_to_use) =>
int function_result = 0
bool barstate_info = barstate.isconfirmed
open_R, high_R, low_R, close_R = request.security(coinpair, tf_to_use, )
// Bollinger part of MIKILAP
src_cp = switch src
open => open_R
high => high_R
low => low_R
=> close_R
lower_band_cp = ta.sma(src_cp, length) - (mult * ta.stdev(src_cp, length))
lower_band_cp_devup = lower_band_cp + lower_band_cp * lower_dev
lower_band_cp_devdown = lower_band_cp - lower_band_cp * lower_dev
bool bb_entry = close_R < lower_band_cp_devup and close_R > lower_band_cp_devdown and barstate_info
// RSI part of MIKILAP
src_sb = switch src_rsi
open => open_R
high => high_R
low => low_R
=> close_R
rsi_val = ta.rsi(src_sb, length_rsi)
bool rsi_entry = rsi_min < rsi_val and rsi_max > rsi_val and barstate_info
// Check if all criteria are met
if bb_entry and rsi_entry
function_result += 1
if function_result == 1 and ticker.standard(syminfo.tickerid) == coinpair
label LE_arrow = label.new(x = bar_index, y = low_R, text = " 🢁 LE", yloc = yloc.belowbar, color = color.rgb(255,255,255,25),
style = label.style_none, textcolor = color.white, tooltip = str.tostring(open_R))
function_result
// Calling the Mikilap function to start the calculation
int indi_value = Function_Mikilap(symbol_full, time_frame)
color bg_color = indi_value ? color.rgb(180,180,180,75) : color.rgb(25, 25, 25, 100)
bgcolor(bg_color)
// Output on the chart
// plotting a band around the lower bandwith of a Bollinger Band for the active CoinPair on the chart
lower_bb = ta.sma(src, length) - (mult * ta.stdev(src, length))
lower_bb_devup = lower_bb + lower_bb * lower_dev
lower_bb_devdown = lower_bb - lower_bb * lower_dev
upper = plot(lower_bb_devup, "BB Dev UP", color=#faffaf)
lower = plot(lower_bb_devdown, "BB Dev DOWN", color=#faffaf)
fill(upper, lower, title = "BB Dev Background", color=color.rgb(245, 245, 80, 80))
Open a command to send to a Mizar Bot.
Let‘s continue coding
Our target: Use our own indicator: Mikilap, to define the timing to send a standard JSON command to a Mizar DCA bot.
(1) define the JSON command in a string, with variables for
- API key
- BOT id
- BASE asset (coin to trade)
(2) send the JSON command at the beginning of a new bar
(3) setup the TradingView alert to transport our JSON command via
Webhook/API to the Mizar DCA bot
Below you can see the code, which defines the individual strings to prepare the JSON command. In the following, we will explain line by line, what each individual string and command is used for.
// Defintion of a Pine Script individual function to handle the Request and avoid Repainting Errors
Function_Mikilap(simple string coinpair, simple string tf_to_use) =>
int function_result = 0
bool barstate_info = barstate.isconfirmed
open_R, high_R, low_R, close_R = request.security(coinpair, tf_to_use, )
//Text-strings for alerts via API / Webhook
string api_key = "top secret" // API key from MIZAR account
string symbol_prefix = str.replace(symbol_full, "BINANCE:", "", 0)
string symbol_name = str.replace(symbol_prefix, "USDT", "", 0)
string bot_id = "0000" // BOT id from MIZAR DCA bot
// String with JSON command as defined in format from MIZAR.COM
// BOT id, API key and the BASE asset are taken from separate variables
DCA bot identifier:
string api_key = "top secret"
string bot_id = "0000"
These both strings contain the info about your account (BOT owner) and the unique id of your bot, which should receive the JSON command.
BASE asset:
string symbol_prefix = str.replace(symbol_full, "BINANCE:", "", 0)
string symbol_name = str.replace(symbol_prefix, "USDT", "", 0)
The shortcut of the base asset will be taken out of the complete string for the coin pair by cutting out the CEX identifier and the quote asset.
JSON command for opening a position:
Entry_message = '{ "bot_id": "' + bot_id + '", "action": "' + "open-position" + '", "base_asset": "' + symbol_name + '", "quote_asset": "' + "USDT" + '", "api_key": "' + api_key + '" }'
If you want to have more info about all possible JSON commands for a DCA bot, please look into Mizar‘s docs: docs.mizar.com
As the JSON syntax requires quotation marks (“) as part of the command, we define the string for the entry message with single quotations ('). So please ensure to open and close these quotations before or after each operator (=, +, …).
Current status:
- We have the entry logic and show every possible entry on the chart => label.
- We have the JSON command ready in a combined string (Entry_message) including the BOT identifier (API key and BOT id) as well as the coin pair to buy.
What is missing?
- To send this message at the opening of a new bar as soon as the entry logic is true. As we know these moments already, because we are placing a label on the chart, we can use this condition for the label to send the message as well.
alert(): built-in function
- We recommend checking the syntax and parameters for alert() in the Pine Script Reference Manual. As we want to send only one opening command, we are using the alert.freq_once_per_bar. To prepare for more complex Pine Scripts, we have placed the alert() in a separate local scope of an if condition, which is not really needed in this script as of now.
if bb_entry and rsi_entry
function_result += 1
if function_result == 1
alert(Entry_message, alert.freq_once_per_bar)
if function_result == 1 and ticker.standard(syminfo.tickerid) == coinpair
label LE_arrow = label.new(x = bar_index, y = low_R, text = " 🢁 LE", yloc = yloc.belowbar, color = color.rgb(255,255,255,25),
style = label.style_none, textcolor = color.white, tooltip = str.tostring(open_R))
IMPORTANT REMARK:
Do not use this indicator for real trades! This example is for educational purposes only!
Configuration of the TradingView alert: on the top right of the chart screen, you will find the clock, which represents the alert section
a) click on the clock to open the alert section
b) click on the „+“ to create a new alert
c) set the condition to our indicator Mikilap and the menu will change its format (configuration of the TradingView alert)
For our script nothing else is to do (you may change the expiration date and alert name), except to add the Webhook address in the Notification tab.
Webhook URL: api.mizar.com
Congratulations on finishing the third lesson on TradingView - we hope you found it informative and engaging! You are now able to code a well-working easy Pine Script indicator, which will send signals and opening commands to your Mizar DCA bot.
We're committed to providing you with valuable insights and practical knowledge throughout this tutorial series. So, we'd love to hear from you! Please leave a comment below with your suggestions on what you'd like us to focus on in the next lesson.
Thanks for joining us on this learning journey, and we're excited to continue exploring TradingView with you!
How to run your Strategy for automated cryptocurrency tradingTo run TradingView Strategy for real automatic trading at any Cryptocurrency you need:
1. Account at TradingView. (Tradingview.com)
And it can’t be a free “Basic” plan.
You must have any of available Paid packages (Pro, Pro+ or Premium).
Because for automatic trading you need the “Webhook notifications” feature, which is not available in the “Basic” plan.
2. Account at your favorite big Crypto Exchange.
You have to sign up with crypto exchange, and usually pass their verification ("KYC").
Not all exchanges are supported.
But you can use most big "CEX" on the market.
I recommend Binance (with lowest fees), Bybit, OKX, Gate.io, Bitget and some others.
3. Account at special “crypto-trading bot platforms”.
Unfortunately you can’t directly send trade orders from TradingView to Crypto Exchange.
You need an online platform which accepts Alert Notifications from TradingView and then – this platform
will generate pre-programmed trade orders and will send them to a supported Crypto Exchange via API.
There are few such crypto bot platforms which we can use.
I personally have tested 3 of them.
It’s "3commas", "Veles" and "RevenueBot".
All of them have almost the same main function – they allow you to make and run automated DCA crypto bots.
They have little different lists of supported Exchanges, different lists of additional options and features.
But all of them have main feature – they can accept Alert Notifications from TradingView!
3commas is more expensive.
RevenueBot and Veles – have the same low price – they take 20% from your trade Profit, but no more than $50 per month!
So you can easily test them without big expenses.
4. Combine everything into One Automatic System!
Once you have all accounts registered and ready – you can set up all into one system.
You have to:
1. Create on your Crypto Exchange – "API" key which will allow auto trading.
2. Create on the bot platform (3commas, RevenueBot, Veles) – new bot, with pre-programmed trading parameters. (token name, sum,
long/short, stop-loss, take-profit, amount of orders etc)
3. On TradingView configure (optimise) parameters of the strategy you want to use for trading.
4. Once it’s done and backtests show good results – you should create “Alert” on the strategy page.
You have to point this alert to “webhook url” provided to you by the crypto-bot platform (and also enter the needed “message” of the alert).
For each of the bot platforms, you can find the details on how to set them up on their official sites.
If you do not understand it and need help, please contact me.
The unknown obvious: resolution vs timeframeChart resolution and chart timeframes are the synonyms, true, but the difference between resolution based mindset and timeframe based mindset is huge.
As it is in reality, pure charts are just tick charts that then get aggregated, mostly by time. So it's all the same data, just different amount in different detail.
If you operate manually you free to scroll through all the resolutions, generally from lower to higher to gain all the information you need in best possible way.
So you mindset is this, "I need more info ima be scrolling through resolutions and be gaining it".
The term "timeframe" is much more applicable for automated trading.
There, it's very complicated to use multiple resolutions at the same time for many reasons, instead it's easier to use multiple data ranges within one resolution.
For example, you run a bot (not robot) on 1 minute chart, this bot executes & fine tunes the signals based on very short window of 4 datapoints, generates the actual signals based on 16 datapoint window, chooses a signal generation method based on 64 last datapoints, and chooses between competing assets based window length 256.
Then you ran an ensemble of these bots on every 'timeframe', this way you can emulate but never achieve a proper manual operation.
And it's good to use common but different methods on each of data windows to reduce correlations inside the ensemble, not like it's shown on my chart (disregard the levels).
1. Bots for everybodyHello there!
My name is Vlad I want to share my opinion regarding Pine bots.
First of all I would like to inform - I do not believe in "Universal the best bot for every case". A lot of people agree with me, and here are few points of it:
1. Cryptocurrency market - not a robot, it is filled by real people. In this case you cannot predict their behaviour, but if you think you can - you shall loose your money faster than anyone else.
Please remember - no one could predict crypto price movement more than with 60% successful trade deals. If You see somebody, who does better - check his activities once again before believe him ,probably this person tries to two-times you.
2. There is no bot can trade successfully only. There will be a lot of days/months every bot will lose you money.
3. Do not believe in any promise like "This bot is the best, You have to buy only and wait for your money! Just buy this program and enjoy your first million!"
If you see that - just run out of it as fast as you can! Your money is at risk and you will pay twice - first for bot, second for trading.
After all this notices it seems we can start.
In this topic we will discuss what trading bot is and how and why it works.
Every trading bot is nothing but written script with its behaviour. It fully depends on inputting data and outputting data(strange, isn't it?). but it is true and constant thing you should remember. No matter where this bot has been run - on your computer with a strong internet or on cloud(true for not-arbitrage only). Every bot takes information, process the data and return some value( to buy , for example). There is no universal bot which can be so adaptive to market to be able change its script fast and successfully and trade profitably all the time. I will describe the ML bots later, but notice - it will be controversial topic 100%(HOLLYWAR!!!).
First thing first.
In this topic you will not find any information about arbitrage-bots.
Lets have a look at two kinds of bots( in my opinion):
1. For short term trading
2. For long term trading
Let's take a closer look at the first one. In this case we are trading inside one day(max one week). This case bots generally always use stop limits, always close position after the conditions are met. It does not keep a lot of open orders and positions and does not need huge capital to start with.
Example -
A bot gets:
Input information - supertrend indicator(0 if red, 1 if green)
Output - make an limit order for buy short(if supertrend red) and reverse to long(green).
Inside the script could be a lot of different conditions like if, while, counts and values that makes the script choose when it should open the order and when should close. But in all the cases - it looks like that. Nothing else. The complexity of the script determines the rules for entering an order or, and is a reflection of the finished idea (trading strategy). The bot "in vacuum" does nothing but reflects the idea of the author of strategy.
How can we see the success bot depends the most on strategy. Of course it is important to have the great cod inside bot, but without good strategy - it costs nothing.
In the next post we will take closer look at long term bot trading and figure out what trading automatization is.
Thanks for attention,
Vlad.
Lesson in Algorithmic tracking . 101If you see ads for trading schools about 3 trades that "will make you a millionaire." This is a set up that will make you $ 98% of the time or more. I've learned them trading crypto they might help in cannabis/ violatile stocks.
1st SWING HIGH: this is a bull run with a 23% retracement. A LOT of traders trade-off 23%. if the retracement breaks 23% it will most likely fall to 50% and it is also the defining factor in a SWING HIGH. Until the run retraces 23% do you know youll the swing is over the theh swing high is done. If 23% is supported it will probably go up but if you're in a stock and it breaks 23% retracement after a bull run be prepared to see 50% retracement. you probably have to long it to see any GAINS.
STOCKS ARE NOT CRYPTO
2nd bots want to buy at the -50% that is what we see here that the price dropped past -23% into -50% and bounced up and became overbought. the bread and butter ( JOIN TRADE DEVILS DISCORD AND FOLLOW THEM ON TWITTER FOR THIS INFO) trade for these bots is -50%+23%+61%. so they want to buy the -50% sell at +26% buy again and then sell again at +61%.
NOT TRADING ADVICE
3rd -61% to -64% is like finding bedrock if it goes past the -50%. Imagine pissing off a robot, not only a robot but a gambling robot. It'll make bigger wages and want to even out the bets. Set you selles at 68% and buy at 62% because it'll hit 64% and decide to die or go up. And going up means back to that +61% the bot wanted in the first place.I would set my buy at -62%right after it bounces from -64% meaning it bottomed out then I saw it start to move again and I picked it up. If it goes past 68% just don't touch it. Something bad has happened and it may take time to recovery. But it if bounces off the 61% then you just ride the botz all the way up.
That's how you 'turn 500 into 5000000" and 'LIMBO OUT"
that is what Ive learned while trading crypto. IN a perfect world this cycle would never be changed. AND STOCKS ARE NOT CRYPTO. or perfect.\\\
WHat do I think will happen. tomorrow? We will see that 61%.or retracement and then 61 later like tomorrow.
Bots / Algo / Whales & Miners Controlling Market | EOS AnalysisHere we have a different chart... This EOS chart threw me off, it was hard to read at first as it is a completely new chart for me.
You see, these numbers and laters on the screen /"pairs", Altcoins or whatever they are, all basically move in exactly the same way with just a few variations.
We have bots/algorithms controlling different parts of the movements and depending on which bots are affecting which token/altcoin project pair at any given time, that is what will decide how the chart will be drawn.
So depending on the strength of the project, the team or the pull it has, just to pick a few of the factors that affect the chart, the chart will be drawn differently.
I think there are around 5 major algorithms controlling the market and many other individual custom made ones interacting with them, as well as the public.
Now that I think about it... These bots/whales/groups/algo/etc. can be miners as well for all we know... That doesn't really matter... We buy when prices are down, to sell when everything is green and up.
So all the technicalities are just entertainment if you can here like me for work.
We look for the charts with the lowest risks, aiming always first to win above all... Once you get used to the feeling of winning, you can decide if you want to sell at 20%, 30% or more.
The trick is to get used to selling, securing/collecting profits. Because if you don't sell, everything will be gone when the market goes low.
Buy when the prices are low.
Sell when prices are moving up.
EOS Chart Analysis
We have EOS Token (EOSBTC) trading at support levels, consolidating sideways.
This consolidation can lead to another drop or a move up.
Which one will it be?
Signals
MA200 dropping fast with momentum is my signal that EOSBTC has good chances to move up.
Each time we see MA200 (black line) behaving this way, prices tend to pull towards the Moving Average line indicator. Let's see how it goes.
Even with all this information, we still remain open to all scenarios and always have a plan before we trade.
Example
If prices go lower we stop the trade at xxx price.
If prices start to move higher, this is where I sell and collect profits.
Enjoyed the content?
Feel free to hit LIKE to show your support.
This is Alan Masters.
Namaste.
Zone of Turmoil & a BFXData observation shareBitcoin failed to close above $7200 during this most recent consolidation period. It has now fallen below $6900. If it was going to launch and make a bull comeback, then it would have happened already so those who claim it's going to launch now are just engaging in wishful thinking. Usually when there is a reversal in bitcoin it happens immediately, not drawn out over days.
I am not going to suggest a price target because we are now entering a zone of turmoil. There will be mass confusion, particularly by the overly bullish and those who are facing fear and despair over losing their initial investments. People will want to buy at any level between here and 6k because they want to believe this is the bottom. And maybe it is? But bitcoin is an entity unto itself that even the biggest whales can't control once the momentum gets going. All I know is that if we break below the dark green channel support, it's not going to be pleasant.
If you look at the weekly charts btc is still a fair way off returning to the "mean". I wouldn't be surprised if we do fall to 5k or less as some predict. However in terms of this "death cross" that occurred on 31 March 2018, I do believe it will be a temporary situation. The 50/200 Moving Averages will cross back after we plummet a bit further. Crypto is too new and too big now to enter a long term bear market. Even though governments and banks are against it, who do you think is buying up in droves? Ironically, crypto is bad but money is good and no power/control hungry entity is going to give up a chance to both make money and control the global population further.
So following on from yesterday's BFXData knowledge share (which are my personal observations), here is the one for today:
What do the BFX bots know:
They know that the idea is to accumulate everyone else's bitcoin/money.
They know how the main indicators work. They don't use them because they don't need to visualise them, but they know that everybody else uses them and so are calculated by the bot server to be taken into account with every trade strategy.
They know that candles are significant to humans and so the movement of price in each minute ultimately determines the direction of the trend.
They know that humans make decisions based on the closure of candles on certain time frames. For example 1 day, 4 hour, 2 hour, 1 hour, 30 min, 15 min, 5 min, 1 min. More weight is given to candles closing on bigger time frames.
They know that market psychology ultimately drive
MACD
Sometimes when the MACD is around the 20 (low trading volume) to 40 (high trading volume) mark in either direction, the bots will stabilise the price (buy and sell walls at 10 cent differences) to move the MACD to the neutral or opposite areas based on what the overall whale strategy is. The price will not move significantly, but the MACD will. This is calculated divergence (just coined). This usually only applies to 1/3/5 minute time frames. Larger time frames are often normal market trends. While the MACD is undergoing this normalisation process, if the price moves beyond what the bot wants the price range to be (usually +/- $20), the bot will buy or sell the price back to what it wants. You can see these small reversal candles on the one minute time frame. Sometimes it takes the bot a little while to react, maybe 30 seconds. This is also a method to prolong the closure of the current candle in order to make the next candle appear to be more green or red. Once the MACD lines start to overlap, large buying/selling movement in the preferred direction will begin again.









