Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Script

Ascending Sort A Struct Array By A Field Example - script per MetaTrader 5

Visualizzazioni:
1100
Valutazioni:
(1)
Pubblicato:
Aggiornato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

This is an example of ascending sort a struct list by a field. You can find out and customize the above algorithm depending on the purpose of use, this is the most basic example is also a direction to resolve the arrangement in an array of structure.

The algorithm used in this example is Quick Sort and Merge Sort.


Input

  psList_[0] = ExStruct(1.0, D'2025.08.06 10:00');
  psList_[1] = ExStruct(2.0, D'2025.08.04 09:00');
  psList_[2] = ExStruct(3.0, D'2025.08.05 12:00');
  psList_[3] = ExStruct(4.0, D'2025.08.07 14:00');
  psList_[4] = ExStruct(5.0, D'2025.08.03 02:00');

Output



Custom Fractals Custom Fractals

The Standard fractals are 2 candles to the right and 2 candles to the left. With this Custom Fractals you can choose as many candles as you like, both to the left and to the right.

ATR Percent ATR Percent

ATR %, ATR percentage, ATR percentage, ATR percentage, ATR percentage

Bollinger Bands Crossover Signals Bollinger Bands Crossover Signals

Indicator Description – Bollinger Bands Crossover Signals Name: Bollinger Bands Crossover Signals Version: 1.1 Author: BENALI Link: https://www.mql5.com/en/users/dahmi_benali

EAToMath EAToMath

Testing on history in the MT5 tester maths mode.