Class CalcFrac – Number of bars before and after the current High / Low (calculated fractal) – library MetaTrader 5

Class CalcFrac - Number of bars before and after the current High / Low (calculated fractal) - library for MetaTrader 5
Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).Functions: //+——————————————————————+ //| calculate lower fractals                                         | //+——————————————————————+ bool CalcFrac :: is_lower_fr(int number_of_bars) //+——————————————————————+ //| calculate upper fractals                                         | //+——————————————————————+ bool CalcFrac :: is_upper_fr(int number_of_bars) Sample: Indicator : FractalsPeriod Class CalcFrac – Number of bars before and after … Read more

Show Number Consecutive Heiken Ashi Candles – indicator MetaTrader 4

Show Number Consecutive Heiken Ashi Candles - indicator for MetaTrader 4
Author: Daniel Frieling Many consecutive Heiken Ashi candles of the same color often indicate a soon and harsh trend reversal. This indicator shows the number of consecutive same color candles. So you can see overbought and oversold situation at first glance. Recommendations: This Indicator depends on a Heiken Ashi Indicator. Use the attached Heiken Ashi … Read more

Number of objects in the specified chart – script MetaTrader 5

star
An example of implementation of counting different objects on a chart in all subwindows as well as in a particular subwindow. Settings: object type — one of the object types; window index — number of the sub-window (at value “-1” the search is conducted in all subwindows). Number of objects in the specified chart – … Read more

Script to StopLoss and TakeProft in Pips, use your EA Number – script MetaTrader 4

Parameters Screen
Script that contains both Stop Loss as Take Profit. Getting your choice only use stop loss or stop loss with take profit. Real author: Valdir Nogueira This script is recommended for robots that do not have stop loss, mainly scalpers and martingales. It will only affect the robots corresponding to the number entered in the … Read more

Euler – Euler number calculation – script MetaTrader 4

The script uses two functions: getE(), that calculates the Euler number, and Factorial(), that calculates the factorial of the number and is used in the calculations. The Euler number is calculated in the script according to the formula:   In order to determine e with a precision of 8 decimal places 12 iterations are sufficient. … Read more

xoshiro256 Random Number Generator – library MetaTrader 5

xoshiro256 Random Number Generator - library for MetaTrader 5
Xoshiro256** Random Number Generator xoshiro256** (named after its operations: XOR, shift, rotate) is a pseudorandom number generator designed by Sebastiano Vigna in collaboration with David Blackman https://prng.di.unimi.it/ This is a 64-bit all-purpose, rock-solid generator. It has excellent (sub-ns) speed, a state size (256 bits) that is large enough for any parallel application, and it passes all … Read more

Bounce Number for Grid/Martingale strategies Lot Sizing/Order Count set – EA MetaTrader 4

Image No. 1
Lot sizing and/or Number of trades for strategies like Grid and Martingale are very important. We always ask about what happened in history of a symbol during range zones and How Many Times price bounced between two price of a Range Zone?! This is what I define as Bounce Number. It can be calculated by … Read more