Categories
Uncategorized

Greeks for Math and Statistics

In statistics, Greek letters are commonly used to represent various parameters and constants. Here is an overview of some of the most frequently used Greek letters and their meanings:

Common Greek Letters in Statistics

  1. 𝛼α (Alpha):
    • Significance Level: Used in hypothesis testing, it represents the probability of rejecting the null hypothesis when it is true (Type I error rate).
    • Cronbach’s Alpha: A measure of internal consistency or reliability of a psychometric instrument.
  2. 𝛽β (Beta):
    • Regression Coefficient: Represents the slope of the regression line in simple linear regression.
    • Type II Error Rate: Represents the probability of failing to reject the null hypothesis when it is false.
    • Power of a Test: Often used in the context of statistical power, where 1βˆ’π›½1βˆ’Ξ² is the power of the test.
  3. 𝛾γ (Gamma):
    • Shape Parameter: In the gamma distribution, 𝛾γ can denote the shape parameter.
    • Gamma Function: Extends the factorial function to real and complex numbers.
  4. 𝛿δ (Delta):
    • Difference or Change: Represents a change or difference in a variable.
    • Effect Size: In some contexts, it is used to denote the effect size.
  5. πœ–Ο΅ (Epsilon):
    • Error Term: Represents the error term in regression models.
  6. πœ‚Ξ· (Eta):
    • Eta-Squared (πœ‚2Ξ·2): A measure of effect size in the context of ANOVA, representing the proportion of variance explained by a factor.
  7. πœ†Ξ» (Lambda):
    • Rate Parameter: In the Poisson and exponential distributions, it represents the rate parameter.
    • Eigenvalues: In linear algebra, used in principal component analysis and other multivariate techniques.
  8. πœ‡ΞΌ (Mu):
    • Population Mean: Represents the mean of a population.
  9. 𝜈ν (Nu):
    • Degrees of Freedom: Represents the degrees of freedom in various statistical tests, such as the 𝑑t-test and chi-square test.
  10. πœ‹Ο€ (Pi):
    • Mathematical Constant: Approximately 3.14159, the ratio of the circumference of a circle to its diameter.
    • Proportion: Sometimes used to denote a proportion in a population.
  11. 𝜌ρ (Rho):
    • Correlation Coefficient: Represents the population correlation coefficient.
  12. πœŽΟƒ (Sigma):
    • Standard Deviation: Represents the standard deviation of a population.
    • Summation Operator: In some contexts, ΣΣ (capital sigma) represents the sum.
  13. πœΟ„ (Tau):
    • Kendall’s Tau: A measure of correlation used with ordinal data.
  14. πœ™Ο• (Phi):
    • Golden Ratio: Approximately 1.618, often appears in nature and art.
    • Standard Normal Distribution: The standard normal distribution’s probability density function is sometimes denoted as πœ™Ο•.
  15. πœ’Ο‡ (Chi):
    • Chi-Square Statistic: Used in chi-square tests for independence and goodness of fit.
  16. πœ”Ο‰ (Omega):
    • Sample Space: Represents the set of all possible outcomes in a probability experiment.

These Greek letters play a significant role in formulating statistical models, conducting hypothesis tests, and representing key statistical measures.

Categories
Algo Trading Trading Software Uncategorized

New Trading Software for US30

We came across a a software that s designed to trade US30. Couple of reasons it caught eyes. First the obvious, that it is designed to trade US 30. The second reason is that it claims that t aims to generate a daily return of approximately 0.40-0.45%, which we assume is on average. If it hits the target it will be a neat little software. Here are some other facts about it-

INSTRUMENTS:

This EA is meticulously crafted with a primary focus on the US30 strategy. Leveraging the responsiveness of US30 to USD volatility.

This isn’t just limited to US30. Through optimization and testing, the team has discovered its adaptability across other major USD currency pairs like EURUSD and GBPUSD. This versatility extends the EA’s applicability beyond its primary focus.

While starting with US30 is recommended to harness the strategy’s core strengths, there is options to explore additional instruments like XAUUSD. Thorough backtesting and optimization will be required.

TRADING HOURS:

By honing in on points where significant volume enters the market, particularly at the New York session open, this EA has carved out a niche for itself in the competitive landscape of algorithmic trading.

STRATEGY:

The core strategy of this EA revolves around identifying optimal entry and exit points based on session-specific liquidity. Unlike traditional trading algorithms that may overlook the nuances of market dynamics at different times of the day, this EA focuses its efforts on moments when liquidity is at its peak, maximizing the potential for profitable trades.

TRADE DURATION:

What sets this EA apart is its ability to cater to traders with varying risk appetites and time horizons. Trades initiated by the EA typically last between 20 minutes to 4 hours, allowing users to capitalize on short-term fluctuations in price without exposing themselves to prolonged market exposure.

RISK MANAGEMENT:

Furthermore, the EA incorporates a robust risk management system, automatically closing trades if they fail to hit their predetermined stop loss or take profit levels by the end of the trading day. This feature not only helps to mitigate potential losses but also ensures that users can maintain a disciplined approach to trading without being glued to their screens 24/7.

FLEXIBILITY:

One of the key selling points of this EA is its flexibility. Users have the ability to backtest and adjust session times, allowing them to fine-tune the algorithm to suit their individual trading preferences and market conditions.

Traders may find profitable results by experimenting with different start times, highlighting the EA’s adaptability to the need and preference of different types of traders.

Categories
Articles News & Articles Uncategorized

Why trade US 30?

Before we make the connection between US 30 and Algo trading lets briefly cover the topic why we trade US 30 at all.

People trade the US 30, also known as the Dow Jones Industrial Average (DJIA), for several reasons:

Benchmark Index: The DJIA is one of the most widely recognized stock market indices in the world. Many investors use it as a benchmark to assess the performance of their portfolios or the overall health of the stock market.

Blue-Chip Companies: The DJIA consists of 30 large, blue-chip companies representing various sectors of the US economy. These companies are considered stable and well-established, making them attractive to investors seeking relatively lower-risk investments.

Diversification: Trading the US 30 provides exposure to a diversified basket of stocks across different industries, reducing individual stock risk. This diversification can be appealing to investors looking to spread their risk across multiple companies and sectors.

Liquidity: The stocks comprising the DJIA are among the most heavily traded and liquid stocks in the world. This high liquidity means that traders can easily buy and sell positions in the US 30 without significantly impacting market prices.

Market Sentiment: The movements of the DJIA can reflect broader market sentiment and investor confidence. Traders may analyze the DJIA’s trends and patterns to gauge market sentiment and make trading decisions accordingly.

Volatility Opportunities: The US 30 can experience significant volatility, presenting trading opportunities for investors seeking to profit from short-term price movements. Volatility can result from various factors, including economic data releases, geopolitical events, or corporate earnings reports.

Hedging: Some investors trade the US 30 as part of a hedging strategy to mitigate risks associated with their other investments. For example, if an investor holds a portfolio heavily weighted in technology stocks, they may use DJIA futures or options to hedge against potential losses in the broader market.

Overall, trading the US 30 provides investors with exposure to a diversified portfolio of large-cap US stocks, liquidity, and opportunities to profit from market movements and sentiment.

Categories
Uncategorized

GBP/JPY prediction November 27

Early drop showing the signs of a bearish day. Or will it bounce back and try to break again?

Early drop showing bearish sign

Since we spotted a divergence on 4 hours the pair has dropped more than 100 pips. Call it a successful divergence or just a drop from strong rejection area, bears have been winning so far.

Since the opening today this pair has dropped more than 50 pips. We expect it to bounce back up near the 50 MA and drop again from there. There is a strong support near 186.382. It is now more likely that the pair will travel to that area and bounce back up from there.

So the mood remains bearish unless it truly breaks above 50, then we will look for a buy set up.

Categories
Uncategorized

A generic way to detect support and resistance with Python

Detecting support and resistance levels in financial data involves analyzing historical price movements to identify levels at which the price has historically had difficulty moving below (support) or above (resistance). Here’s a basic example of how you can use Python and a popular library like pandas to detect support and resistance levels:

import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from scipy.signal import argrelextrema

# Load historical price data (you can get this data from a financial API or a CSV file)
# For the sake of example, let's create a simple price dataset
data = {
    'Date': pd.date_range(start='2023-01-01', end='2023-12-31'),
    'Close': [100, 110, 95, 120, 90, 115, 105, 125, 85, 130, 110, 140]
}

df = pd.DataFrame(data)
df.set_index('Date', inplace=True)

# Smooth the data using a moving average to identify significant peaks and troughs
window_size = 3
df['SMA'] = df['Close'].rolling(window=window_size).mean()

# Identify local minima (support levels) and maxima (resistance levels)
minima_idx = argrelextrema(df['SMA'].values, np.less, order=window_size)[0]
maxima_idx = argrelextrema(df['SMA'].values, np.greater, order=window_size)[0]

support_levels = df.iloc[minima_idx]['Close']
resistance_levels = df.iloc[maxima_idx]['Close']

# Plotting
plt.figure(figsize=(10, 6))
plt.plot(df.index, df['Close'], label='Close Price')
plt.plot(df.index, df['SMA'], label=f'SMA ({window_size} periods)')
plt.scatter(support_levels.index, support_levels.values, color='green', label='Support Levels', marker='^')
plt.scatter(resistance_levels.index, resistance_levels.values, color='red', label='Resistance Levels', marker='v')
plt.title('Support and Resistance Levels Detection')
plt.xlabel('Date')
plt.ylabel('Price')
plt.legend()
plt.show()

In this example:

  • We use a simple moving average (SMA) to smooth the price data.
  • We identify local minima and maxima in the smoothed data using argrelextrema from scipy.signal.
  • The identified minima correspond to potential support levels, and the identified maxima correspond to potential resistance levels.
  • We plot the original closing prices along with the smoothed curve and mark the detected support and resistance levels.

This is a basic example, and in a real-world scenario, you might want to use more sophisticated techniques and additional indicators to improve the accuracy of support and resistance level detection. Additionally, you could explore libraries like ta-lib for technical analysis or machine learning models for more advanced pattern recognition.