Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

Probability and Signals class - library for MetaTrader 4

Views:
4355
Rating:
(5)
Published:
2023.09.05 19:35
Signaltest.mq4 (5.54 KB) view
SignalClass.mqh (52.07 KB) view
Functions.mqh (37.27 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The provided code is an MQL include file and an Expert Advisor demonstrating how the classes work.It implements a trading strategy based on various technical indicators and trend analysis. The script defines several custom classes to create and manage trading signals based on different technical conditions.

  1. Trend Class : This class is responsible for determining the long-term trend using different trend-checking methods, such as moving averages, price changes, and their combinations.

  2. Signal Class : This class serves as the base class for different types of trading signals. It contains methods and attributes shared by all signal types, including take profit, stop loss, and trend-related settings.

  3. Probability Class : This class calculates various probabilities and statistics related to trading signals, such as the likelihood of reaching take profit before stop loss, average price changes after entry, and entry success rates.

The overall purpose of this code is to automate the process of generating trading signals based on the specified technical indicators and conditions. Traders can customize the settings for each signal type and test their effectiveness using historical data. The script can be applied to different currency pairs and timeframes within the MetaTrader 4 platform to execute trading decisions based on the defined signals and conditions.


Check out the video I've made about it:



Ranged Grid Bot EA with pending orders Ranged Grid Bot EA with pending orders

The EA created sell/buy limit orders according to: - Grid number of orders - Trading range (computed automatically by uwing weekly highs and lows) - Current price

Ehlers reverse EMA Ehlers reverse EMA

A trend or cycle indicator with very low lag.

MaybeAwo EA MaybeAwo EA

a Versatile automated trading tool for the MetaTrader 4 platform. This EA is designed to assist traders in managing their positions effectively by offering features such as setting a breakeven point, trailing stop, stop loss, and take profit levels. It works with various input parameters, allowing you to customize its behavior to fit your trading strategy.

Using Moving Averages with an EA (Sample Source Code) Using Moving Averages with an EA (Sample Source Code)

This time, we're providing a sample that enters based on the Golden Cross and Dead Cross of the moving averages. If you want to see a sample where a long entry is made when the closing price of the candlestick crosses above the moving average, please refer to this article.