Showing posts with label DIY. Show all posts
Showing posts with label DIY. Show all posts

Wednesday, July 12, 2023

XABCD Investment Pattern is a drawing tool available on TradingView Platform - By Kapil Sharma

https://testing-mines.blogspot.com/2023/07/xabcd-investment-pattern-is-drawing.html

The XABCD Pattern is a drawing tool available on TradingView that allows analysts to highlight various five-point chart patterns. Users can manually draw and maneuver the five separate points (XABCD). The XABCD points create four separate legs, which combine to form chart patterns. The four legs are referred to as XA, AB, BC, and CD.

There are four major XABCD chart patterns that are most common. These patterns can be either bullish or bearish. The four major patterns include: Gartley, Butterfly, Crab, and Bat.

Bullish Gartley Pattern: The pattern begins with an uptrend designated as XA. Price reverses back down at A and stops at B. The Fibonacci Retracement ratio of AB should be 61.8% of the price range of A minus X. Price reverses at B. The BC retracement should be between 61.8% and 78.6% of the AB price range (not the length of the lines). This is shown along the line AC. At C, price reverses with retracement CD between 127% and 161.8% of the range BC. This is shown along the line BD. Price D is the point to enter the market (buy) .

Bullish Butterfly Pattern: The swing from A to D should be a 127.2% or 161.8% extension of the XA line. Within the A to D swing, a valid ABCD pattern must be observed. In an ideal setup, the two triangles (XAB and BCD) should be almost equal in terms of time. If not, look for the second triangle (BCD) to be between 61.8% and 161.8% of the first triangle (XAB). A move beyond 161.8% would suggest that the bullish pattern is broken and bearish movement may be inevitable.

Bearish Gartley Pattern: The pattern begins with a downtrend designated as XA. Price reverses back up at A and stops at B. The Fibonacci Retracement ratio of AB should be 61.8% of the price range of A minus X. Price reverses at B. The BC retracement should be between 61.8% and 78.6% of the AB price range (not the length of the lines). This is shown along the line AC. At C, price reverses with retracement CD between 127% and 161.8% of the range BC. This is shown along the line BD. Price D is the point to enter the market (sell).

Bearish Butterfly Pattern: The swing from A to D should be a 127.2% or 161.8% extension of the XA line. Within the A to D swing, a valid ABCD pattern must be observed. In an ideal setup, the two triangles (XAB and BCD) should be almost equal in terms of time. If not, look for the second triangle (BCD) to be between 61.8% and 161.8% of the first triangle (XAB). A move beyond 161.8% would suggest that the bearish pattern is broken and bullish movement may be inevitable.

Public Source: XABCD Pattern — TradingView

Sunday, June 4, 2023

How to set up a Lake House environment on local windows system - By Kapil Sharma

To set up a Lake House environment on a Windows 10 laptop using open-source tools, you can follow these general steps:


https://testing-mines.blogspot.com/2023/06/how-to-set-up-data-lake-house.html




Install Apache Spark:

Download the latest version of Apache Spark from the official website (https://spark.apache.org/downloads.html).

Extract the downloaded archive to a desired location on your Windows machine.

Set up environment variables: Add the Spark bin directory to the PATH environment variable.

Install Apache Hadoop:

Download the latest version of Apache Hadoop from the official website (https://hadoop.apache.org/releases.html).

Extract the downloaded archive to a desired location on your Windows machine.

Set up environment variables: Add the Hadoop bin directory to the PATH environment variable.

Install Apache Hive:

Download the latest version of Apache Hive from the official website (https://hive.apache.org/downloads.html).

Extract the downloaded archive to a desired location on your Windows machine.

Set up environment variables: Add the Hive bin directory to the PATH environment variable.

Install Apache Parquet:

Parquet is a columnar storage file format commonly used in a Lake House architecture.

You can install Parquet by including it as a dependency in your Spark or Hive setup.

Configure Spark and Hive:

Configure Spark: Update the spark-defaults.conf file located in the Spark configuration directory (SPARK_HOME/conf). Configure parameters like memory allocation, executor cores, and other Spark settings based on your system specifications.

Configure Hive: Update the hive-site.xml file located in the Hive configuration directory (HIVE_HOME/conf). Configure database connection details, metastore settings, and other Hive configurations as needed.

Start Spark and Hive:

Open a command prompt or terminal and navigate to the Spark installation directory.

Start Spark: Execute the command spark-shell to start the Spark interactive shell. Verify that Spark is running correctly.

Start Hive: Execute the command hive to start the Hive command-line interface. Verify that Hive is running correctly.

Test Lake House Setup:

Use Spark and Hive to create and query tables from various data sources like CSV, JSON, or Parquet files.

Experiment with Spark SQL and Hive queries to interact with the data stored in your Lake House environment.

Note that setting up a Lake House environment on a Windows machine may have some limitations compared to running it on a Linux-based system. It's recommended to refer to the official documentation of each tool for any specific instructions or considerations related to the Windows platform.