Libreria di classi generiche - bug, descrizione, domande, caratteristiche d'uso e suggerimenti - pagina 30

 
Alexey Rassvetnyy:

Puoi dirmi perché il codice non si compila?

Il problema è negli enum di sistema: ENUM_CHART_PROPERTY_DOUBLE, ENUM_CHART_PROPERTY_STRING c'è qualcosa che non va. Se uso il mio enum come tipo di chiave, anche la compilazione passa.

Segnalato un difetto, spero che un giorno lo sistemino.

https://www.mql5.com/ru/forum/1111/page2952#comment_20527784

Библиотека Generic классов - ошибки, описание, вопросы, особенности использования и предложения
Библиотека Generic классов - ошибки, описание, вопросы, особенности использования и предложения
  • 2019.08.16
  • www.mql5.com
С 6 декабря 2017 года в стандартную поставку MetaTrader 5 стали входить так называемые Generic-классы, реализующие эффективные алгоритмы для хранен...
 
Alexey Rassvetnyy:

Ha denunciato un difetto, si spera che un giorno lo sistemino.

https://www.mql5.com/ru/forum/1111/page2952#comment_20527784

//+------------------------------------------------------------------+
//| fix HashMap.mqh                                                  |
//|  line 21  | was | Entry(void): key(NULL) {}                      |
//|           | now | Entry(void): key((TKey)NULL) {}                |
//|  line 462 | was | m_entries[i].key=NULL;                         |
//|           | now | m_entries[i].key=(TKey)NULL;                   |
//+------------------------------------------------------------------+
 
Ciao a tutti

Ho un suggerimento per aggiungere un'opzione che permetta ai trader di usare un trailing stop dopo un livello di take profit, che aiuterebbe molto nel trading manuale.

Questo potrebbe essere un pulsante quadrato per selezionare questa opzione nella finestra del trailing stop personalizzato.

Saluti,
 

Chi può dirmi se è possibile eseguire questo codice in Metatrader?

// Product and SerialNumber.
// You can replace these properties by
// an asterisk (*) to get all properties (columns).
ManagementObjectSearcher searcher =
    new ManagementObjectSearcher("SELECT Product, SerialNumber FROM Win32_BaseBoard");

// Executing the query...
// Because the machine has a single Motherborad,
// then a single object (row) returned.
ManagementObjectCollection information = searcher.Get();
foreach (ManagementObject obj in information)
{
    // Retrieving the properties (columns)
    // Writing column name then its value
    foreach (PropertyData data in obj.Properties)
        Console.WriteLine("{0} = {1}", data.Name, data.Value);
    Console.WriteLine();
}

// For typical use of disposable objects
// enclose it in a using statement instead.
searcher.Dispose();

---

C'è un altro modo per ottenere il SerialNumber della scheda madre?

 
Vitaly Muzichenko:

Chi può dirmi se è possibile eseguire questo codice in Metatrader?

---

C'è un altro modo per ottenere il SerialNumber della scheda madre?

E cosa sarà nella macchina virtuale?

 
JRandomTrader:

E come sarà nella macchina virtuale?

Bisognerà vedere.

 
JRandomTrader:

E come sarà nella macchina virtuale?

Dovrebbe essere lo stesso. L'UPU ha lo stesso accesso al disco rigido del sistema nativo, a quanto pare. Ma è meglio guardare, l'accesso può essere limitato e poi tornerà ZERO o Errore.

 
Vitaly Muzichenko:

Dovete guardarlo.

Se volete fare un sistema che si leghi all'hard disk, è meglio interrogare diversi dispositivi, vedere se ci sono risposte positive, e in caso contrario, legarsi al SO, non all'hard disk. A un numero di registro o a qualcos'altro di costante nel sistema operativo.

 
dmidecode
#  dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
12 structures occupying 524 bytes.
Table at 0x000F5840.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
        Vendor: SeaBIOS
        Version: 1.12.0-1
        Release Date: 04/01/2014
        Address: 0xE8000
        Runtime Size: 96 kB
        ROM Size: 64 kB
        Characteristics:
                BIOS characteristics not supported
                Targeted content distribution is supported
        BIOS Revision: 0.0

Handle 0x0100, DMI type 1, 27 bytes
System Information
        Manufacturer: QEMU
        Product Name: Standard PC (Q35 + ICH9, 2009)
        Version: pc-q35-3.1
        Serial Number: Not Specified
        UUID: 1 C48EB8C-FD03-4 CD4-A3D9-E3133CB57511
        Wake-up Type: Power Switch
        SKU Number: Not Specified
        Family: Not Specified

Handle 0x0300, DMI type 3, 21 bytes
Chassis Information
        Manufacturer: QEMU
        Type: Other
        Lock: Not Present
        Version: pc-q35-3.1
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: Unknown
        OEM Information: 0x00000000
        Height: Unspecified
        Number Of Power Cords: Unspecified
        Contained Elements: 0

Handle 0x0400, DMI type 4, 42 bytes
Processor Information

Questa è la VM nella KVM. Non c'è nemmeno una menzione della madre.

 
Valeriy Yastremskiy:

Se volete fare un sistema di collegamento al disco rigido, sarebbe meglio interrogare diversi dispositivi, vedere se rispondono positivamente, e se no, allora collegarsi non al disco rigido, ma al sistema operativo. A un numero di registro o a qualcos'altro di permanente nel sistema operativo.

Non ho potuto trovare le informazioni da nessuna parte. L'ho fatto nella partizione del disco rigido, ma non è affatto la stessa cosa.

Ho bisogno di trovare qualcosa in WinAPI o qualcos'altro che sia più affidabile di un numero di partizione del disco rigido.