Wednesday, June 12, 2024

Tradingview.com | About TradingView alerts

Here is the article. 

TradingView alerts are immediate notifications when the market meets your custom criteria. For example, "Alert me if Apple crosses above $150." All users can get visual popups, audio signals, email alerts and email-to-sms alerts, and also PUSH notifications that are sent to your phone. Essential, Plus and Premium users can also receive webhook notifications when an alert is triggered.

You can also create alerts on prices, indicators, strategies and/or drawing tools.

Real-Time Price Alerts

Set your own alerts and get notifications on any device. Pick a price level that matters and create an alert that triggers when there’s movement. Receive notifications through email, mobile pushes or on your desktop.

Indicator Alerts

Build alerts based on any of the 1,000+ indicators on TradingView, including those created by the community. Customize each alert with predefined conditions like "crossing up" and "exiting channel" or create your own trigger settings by the means of alertcondition and alert functions.

Strategy Alerts

Create an alert for a strategy and receive a notification whenever a strategy's order is executed.

Draw Your Own Alerts

Get custom alerts that are unique to what you see on a chart. Use the line drawing tool to make trend lines, channels and other custom drawings. Then you can create an alert based on what you draw.

Alert types

Crossing

The most basic and widely used alert. Essentially saying, “Let me know when price crosses X”. The crossing alert is triggered when the current price series crosses the value that was set when the alert is created (doesn’t matter which direction).

Usage example: "I want to know when Google goes up by $10 from the current price". Open a GOOGL chart and then open the Alert menu. The current price will be filled in the price box (right now it's 1540.30). Choose Crossing and change it manually to 1550.30. That's it!

Alternatively, you can right-click the chart where it says $1550.30 and choose Set Alert. The 1550.30 price will be filled in automatically.

Crossing Down / Crossing Up

A more specific version of the Crossing alert. You get to specify whether a price is crossed in an upward move, or a downward move. The Crossing Down alert is triggered when the current series crosses downwards past the original value set in the alert. Crossing Up, as you’ve probably guessed, alerts you when price crosses the value upwards.

Usage example: "Microsoft is currently at $44.54. I think it will go down, and then back up to $42, at which point I'll buy because it's an upward trend. So, I want to know when MSFT crosses $42 UPWARD." So, open a chart of MSFT, and choose Crossing Up alert type and type in 42.

Greater Than / Less Than

This alert is for when you want to know that the price didn’t just bump into a level you set, but actually broke through it.

The Greater Than alert is triggered if the price series reaches a value that is higher than the one set in the alert. Conversely, the Less Than alert is triggered if the series reaches a value lower than the one set in the alert.

Usage example: "Apple now is at $97.79 and approaching the psychologically difficult price of $100. It's likely AAPL price will bounce off $100 a few times, but once it's through, I think it'll continue to rise steadily. Therefore, I'd like to know once the $100 barrier is bypassed for good." So, you open the AAPL chart and set the alert to Greater Than $100 for AAPL, and once the price is GREATER THAN $100, you’ll be alerted.

Entering Channel / Exiting Channel

Channels are defined boundaries above and below a certain price. Usually channels define the typical random volatility of price for a stock, and a move across channel borders can be seen as a significant or an out-of-the-ordinary move by the price.

An Entering Channel alert is triggered when the series enters the channel that was defined when the alert was created. An Exiting Channel, logically, is triggered when the series exits the channel.

Channel boundaries can be defined by series or levels (or a combination of the two). These alert us to the position of the previous bar relative to the channel.

Usage example: "By looking at the historical price chart, Cisco's price roughly fluctuates about $2 after each earnings and then jumps. It's at $25.86 right now. The next earnings are coming up soon and I'd like to see if price moves out of the +$2 or -$2 channel from what it is now".

If you set an Exiting Channel alert with the +2 and -2 relative to the current price, you'll automatically be alerted when that happens – without having to lift a finger.

Inside Channel / Outside Channel

An Inside Channel alert is triggered if the series value is within the channel and an Outside Channel alert when the series value is out of the channel. The values should be set when creating the alert.

These alerts, unlike Entering Channel/Exiting Channel alerts, don't take into account the position of the previous bar relative to the channel.

Usage example: This one is very similar to the Entering / Exiting Channel, except it lets you know if the value is inside or outside the defined channel.

Moving Up / Moving Down

This is the Crossing Up / Crossing Down alert with one additional parameter – time. You will be alerted if the stock goes up by $X within a certain amount of time (i.e. bars).

A Moving Up alert is triggered if the price goes up by a certain value that you set in the alert (within a pre-specified number of bars). The Moving Down alert does the same thing, but when the price goes down.

Usage example: "I want to know if Google goes up by $10 within the next 4 days, but after that, I don’t care." You'll want to open a GOOGL chart and set each bar to equal to 1 day. Then, open the Alert menu, and the current price will be filled in the price box (right now it’s $97.40). Choose Moving Up and change it manually to $107.40 (that’s $97.40 + $10) and set the number of bars to 4 (since you wanted 4 days and each bar is set to 1 day). That's it, you're all done!

Moving Up % / Moving Down %

A Moving Up % alert is the same as above, except it is in percent. It's triggered if the price goes up by a certain percentage, which you set in the alert. A Moving Down alert is triggered when the price goes down for the set percent.

Usage example: Same thing as Moving Up / Down, but with percentage . You don't have to calculate the target value in your head, you can simply choose UP 10%, for example, and if the current price is $97.40, the target will automatically be set at $97.40 x 1.1 = $107.14.

Alerts for drawings

Alerts are available for the following drawings:

  1. Trend line
  2. Info line
  3. Trend angle
  4. Horizontal liine
  5. Horizontal ray
  6. Vertical line
  7. Arrow
  8. Ray
  9. Extended 
  10. Parallel channel
  11. Disjoint channel
  12. Flat top/ Bottom

If a drawing has an active alert, you’ll see an icon next to the drawing (same color as the drawing).

If the alert is inactive, the icon becomes gray. 

If the drawing is changed, the alert is automatically adjusted.

NOTE! Drawing alerts depend on the chart resolution, just like the indicator alerts, which will be shown only on the initial timeframe.



Tradingview.com | Essentials

  1.  2 charts per tab
  2. 5 indicators per chart
  3. 10K historical bars
  4. 20 price alerts
  5. 20 technical alerts
  6. 10 parallel chart connections
  7. No ads
  8. Volume profile
  9. Custom timeframes
  10. Custom range bars
  11. Multiple watchlists
  12. Bar replay
  13. Indicators on indicators

How to Trade the MACD | Investopedia

 The moving average convergence divergence (MACD) is an oscillator that combines two exponential moving averages (EMA)—the 26-period and the 12-period—to indicate the momentum of a bullish or bearish trend. MACD can be used to signal opportunities to enter and exit positions.

It is one of the most popular technical indicators in trading and is appreciated by traders worldwide for its simplicity and flexibility.

Read on to learn about the MACD and some of the MACD strategies used by traders.

KEY TAKEAWAYS

  • MACD is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. 
  • Traders use the MACD to identify entry and exit points for trades.
  • MACD is used by technical traders in stock, bond, commodities, and FX markets.
  • Some MACD strategies include the histogram, the crossover, the zero-cross, the money flow index, and the relative vigor index.
  • One of the biggest risks of the MACD is that a reversal signal can be a false indicator.

MACD: An Overview

The concept behind the MACD is straightforward. It calculates the difference between a security's 26-day and 12-day exponential moving averages (EMA). Each moving average uses the closing price of its period (26- and 12-day) to calculate its moving average value.

On the MACD chart, a nine-period EMA of the MACD itself is also plotted. This line is called the signal line. It acts as a trigger for buy and sell decisions when the MACD crosses over it. The MACD is considered the faster line because the points plotted move more than the signal line, which is regarded as the slower line.

MACD Histogram

The MACD histogram is a visual representation of the difference between the MACD and its nine-day EMA—not highs and lows. The histogram is positive when the MACD is above its nine-day EMA and negative when the MACD is below its nine-day EMA. The point on the histogram where momentum is zero is the zero line.

If prices change rapidly, the histogram bars grow longer as the speed of the price movement—its momentum—accelerates and shrinks as price movement decelerates.

Trading Divergence

Divergence refers to a situation where factors move away from or are independent of others. With the MACD, it is a situation where price action and momentum are not acting together.

For instance, divergence can indicate a period where the price makes successively lower highs, but the MACD histogram shows a succession of higher lows. In this case, the highs are moving lower, and price momentum is slowing, foreshadowing a decline that eventually follows.

By averaging up their short, the trader eventually earns a handsome profit, as the price makes a sustained reversal after the final point of divergence.

Types of MACD Strategies

Histogram

The MACD histogram can be a useful tool for some traders. While we've explained a little bit above about how to read it, here's how it works. It plots out the difference between the fast MACD line and the signal line. Traders can use the MACD histogram as a momentum indicator to jump ahead of changes in market sentiment.

There are three different elements involved with the histogram, which is mapped out around a baseline:

  • The MACD line (produced by subtracting a long-term EMA from a shorter-term EMA)
  • The signal line (produced by subtracting the two EMAs and creating a nine-day moving average)
  • The histogram (produced by subtracting the MACD line from the signal line)

Keep in mind, though, that the MACD histogram has its faults (see the "Drawbacks" section below). Many traders often use other tools and techniques to determine and make their moves based on market sentiment, such as the trading volume of a given security.

Crossover Strategy

A crossover occurs when the signal and MACD line cross each other. The MACD generates a bullish signal when it moves above its own nine-day EMA and triggers a sell signal (bearish) when it moves below its nine-day EMA.

Zero-Cross Strategy

When the MACD crosses from below to above the zero line, it is considered a bullish signal. Traders generally take long positions when this occurs. If it crosses from above to below the zero line, it is considered a bearish signal by traders. Traders then enter short positions to take advantage of falling prices and increasing downward momentum.

In both cases, the longer the histogram bars, the stronger the signal. When there is a strong signal, it is more likely—but not guaranteed—that the price will continue in the trending direction.

Money Flow Index

The money flow index allows traders to use price and trading volume to identify and determine when assets are overbought or oversold in the market. This oscillator moves between 0 and 100 where readings below 20 are oversold and 80 are considered overbought.

One of the drawbacks of this strategy, though, is that it tends to produce fewer signals. That's because the readings it produces are extreme due to the fact that they are focused on spurts in volume and prices.

Relative Vigor Index (RVI)

The relative vigor index (RVI) is a commonly used momentum indicator in technical analysis. It measures how strong a trend is by comparing the trading range of a certain security with its closing price. The comparison is made by using a simple moving average (SMA) to smooth the results out.

Traders generally believe that the value of the RVI increases as a bullish trend continues to gain momentum. That's because, in this case, an asset's closing price tends to fall at the higher end of the range. The opening price, on the other hand, stays further down on the lower end of the range.

MACD With RSI and SMA

Traders may often use the MACD and relative strength index (RSI) indicator strategy. This allows them to use both the RSI and the SMA to their advantage. But what are they?

  • The RSI allows traders to measure how strong a trend is while being able to pinpoint different points of reversal along that trendline. This is mapped along a baseline of 14 periods over two different levels: an oversold and an overbought one. Where the levels are set depends entirely on the trader and their strategies. Some may choose conservative levels of 20 and 80.
  • The SMA calculates the average range of prices by the number of periods in that range, usually with closing prices. This indicator allows traders to assess whether they believe a trend will continue or reverse.

Combining these three strategies together allows traders to:

  • Project future price changes using the RSI
  • See how strong a trend is and where it's headed using the MACD
  • Use the SMA as a lagging trend-following indicator

Drawbacks of MACD

Like any oscillator or indicator, the MACD has drawbacks and risks.

  • One of the most significant risks is that a reversal signal can be a false indicator. For instance, the zero-cross image above has a point where the MACD crosses from below and back again in one trading session. If a trader entered a long position when the MACD crossed from below, they would be left with a losing stock if prices continued to fall.
  • MACD does not function well in sideways markets. If prices generally move to the side when they stay within a range between support and resistance. MACD tends to drift toward the zero line because there is no up or down trend—where the moving average works best.
  • Additionally, the MACD zero-cross is a lagging indicator because the price is generally above the previous low before the MACD crosses the line from below. This can cause you to enter a long position later than you might have been able to.

Example of a MACD Trading Strategy

We'll use our zero-cross image for a MACD trading example. As trading proceeds, you observe the MACD initially crossed the zero line from below, then crossed again from above. A trader might notice the histogram bars moving down with the MACD, indicating a possible reversal and opportunity for a short trade.

When the line crossed from above, the trader could take a short position and net a profit when the prices began to climb again.

The zero-cross strategy could be used again to take a long position when the MACD crosses the zero line from below. At the point circled in our image, prices have been rising and momentum is up. The trader could take a long position at this point.

What Is the Best MACD Strategy?

There are several strategies for trading the MACD. The best strategy for you depends on your preferred trading style and which one you're comfortable using.

Which Indicator Works Best With the MACD Strategy?

In general, most traders use candlestick charts and support and resistance levels with MACD.

Why Does MACD Use 12 and 26?

MACD uses 12 and 26 as the default number of days because these are the standard variables most traders use. However, you can use any combination of days to calculate the MACD that works for you.

The Bottom Line

MACD is one of the most-used oscillators because it has been proven to be a reliable method for identifying trend reversals and momentum. There are various strategies for trading MACD, including those described above. Try each out to find the one that works best for you and your trading plan.


Tuesday, June 11, 2024

Questrade.com | Tradingview support

Here is the link. 

When it comes to powerful trading tools, one of the best known platforms in the world, and the website for all things investing, is TradingView.

TradingView is a globally renowned charting platform, and a vibrant community used by over 60+ million traders around the globe. They empower their users with best-in-class charting tools, live market data, a comprehensive analytical suite, market commentary and much more.

Revolutionize your trading experience: Questrade x TradingView.

Questrade is extremely proud to partner with TradingView to offer their tools to you, now integrated through an API with your Questrade accounts. This allows for a seamless trading experience on TradingView’s platforms using your Questrade accounts.

Unlock a new era of financial empowerment with Questrade and TradingView through our secure, encrypted API that allows you to place & execute trades, modify watchlists, and more.




TradingView.com | Pine Script | Overview

Here is the link. 

A script written in Pine is composed of functions and variables. Functions contain instructions that describe the required calculations. Variables save the values used or created during those calculations.

A script must contain a study or strategy annotation which defines the script’s name and other properties. The script’s body contains the functions and variables necessary to calculate results which will be rendered on a chart with a plot function, or some other function that plots the script’s output.


TradingView.com | 进阶知识涵盖

 综上,本篇简单介绍了TradingView的最基本操作,更多进阶知识,欢迎进入小群学习交流。

进阶知识涵盖:

  • K线以及画线

  • 常用工具、理论

  • 自定义预警系统

  • 自定义指标、策略以及pinescript编程

  • 高效利用货币筛选器

  • 自定义现货交易机器人

BCAA | Travel Insurance |

Here is the article. 

Comprehensive coverage & flexible plans

Heading on a getaway? Whether it’s a quick trip across the border, or a long-awaited dream vacation, remember to pack BC’s Top Choice for Travel Insurance, starting at only $20 per trip. You’ll get affordable and flexible coverage for individuals and families, with Single Trip and Annual Multi-trip Plan options for out of province and out of country travel. Plus, your kids are automatically covered for FREE and BCAA Members save 10%*. Coverage is also available for Visitors to Canada, including returning Canadians and new immigrants.

We help protect you from costly medical bills, trip cancellation fees, lost baggage and more. Plus, now get automatic payouts for flight and baggage delays with Travel Delay +AutoPay. Learn more at bcaa.com/faq.


Stock website | My purchases

 


Tradingview | A complete script to set a trade to set stop loss based on cross point of MA - moving averages

Chinese article is here. Using Google chrome translate English product feature, the article in English CAN easily be translated to English. 

Order tradingview.com here. 

Monthly $49/ month premium version - Pine script can be easily written and then buy and sell stocks can be processed automatically by script. 


//@version=5strategy("Take profits & stop losses", overlay=true)
// Create Indicator'sshortSMA = ta.sma(close, 10)longSMA = ta.sma(close, 30)rsi = ta.rsi(close, 14)atr = ta.atr(14)
// Specify crossover conditionslongCondition = ta.crossover(shortSMA, longSMA)shortCondition = ta.crossunder(shortSMA, longSMA)
// Execute trade if condition is Trueif (longCondition) stopLoss = low - atr * 2 takeProfit = high + atr * 2 strategy.entry("long", strategy.long, 100, when = rsi > 50) strategy.exit("exit", "long", stop=stopLoss, limit=takeProfit)
if (shortCondition) stopLoss = high + atr * 2 takeProfit = low - atr * 2 strategy.entry("short", strategy.short, 100, when = rsi < 50) strategy.exit("exit", "short", stop=stopLoss, limit=takeProfit)
// Plot Moving Average's to chartplot(shortSMA)plot(longSMA, color=color.black)

tradingview从入门到写一个完整的交易策略

Here is the article. 

目录
  1. 什么是Pine Script?
  2. 为什么要使用Pine Script?
  3. 为什么我不能使用Pine Script?
  4. 使用Pine Script的替代方案是什么?
  5. 如何开始使用Pine Script?
  6. 如何在Pine Script中检索Apple的价格?
  7. 如何在Pine Script中检索Apple的SMA(20)?
  8. 如何使用Pine Script回测移动平均线交叉策略?
  9. 如何设置止盈和止损?
  10. 当谷歌涨5%时,如何对苹果进行交易?
  11. 如何在不编码的情况下修改我们的脚本?
  12. 如何使用Pine Script创建自定义指标?
  13. 最后的想法