Watch how to download trading robots for free
Find us on Facebook!
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
Indicators

Linear Regression calculation based on pine script v4 - indicator for MetaTrader 5

Views:
3627
Rating:
(6)
Published:
2023.12.25 07:55
Updated:
2023.12.29 17:16
linreg.mq5 (3.03 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Linear regression curve

A line that best fits the prices specified over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where length is the y argument, offset is the z argument, intercept and slope are the values calculated with the least squares method on source series (x argument)

pine script v4 function I/O

linreg(source, length, offset) → series[float]

This indicator includes a simple function to calculate the linreg function based on pine script. This function can be used as a copy and paste snippet in conversion projects from tradingview platform.

ScreenshotLinreg


Candle ZigZag Candle ZigZag

Candle ZigZag is an indicator which changes its leg if a candlestick color changes

Input and output of onnx model Input and output of onnx model

The script is useful for inspecting the structure of ONNX models, providing insights into the input and output, their names, and their properties. It is particularly helpful for debugging and understanding the characteristics of ONNX models used in machine learning applications.

COLLECT ALL INDICATORS DATA COLLECT ALL INDICATORS DATA

This Script collects all MQL5 built-in indicators buffers and stores them in a CSV file for analysis purposes

Volume Profile Volume Profile

This is an indicator for showing volume profile on the chart, using simple calculations and very fast execution.