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

Signals and Probability class - library for MetaTrader 5

Views:
3461
Rating:
(6)
Published:
2023.09.05 19:31
Functions.mqh (30.09 KB) view
Trade.mqh (67.84 KB) view
SignalsTest.mq5 (6.58 KB) view
SignalClass.mqh (53.91 KB) view
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:


Ichimoku code for beginners by William210 Ichimoku code for beginners by William210

Ichimoku beginner tutorial to learn how to code in MQL5

MACD code for beginners by William210 MACD code for beginners by William210

MACD beginner tutorial to learn how to code in MQL5

Momentum  code for beginners by William210 Momentum code for beginners by William210

Momentum beginner tutorial to learn how to code in MQL5

Drag and Drop Move StopLoss Drag and Drop Move StopLoss

Set StopLoss by just dragging and dropping script on the desired price level.