Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Facebook üzerinde bulun!
Fan sayfamıza katılın
Kodu ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Kodu beğendiniz mi? MetaTrader 5 terminalinde deneyin
Görüntülemeler:
288
Derecelendirme:
(5)
Yayınlandı:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git
Bu, mql5'te json serileştirme ve serileştirme özelliğini uygulamamdır
Ayrıca indirmek için npm paket yöneticisini de kullanabilirsiniz
npm i mql5-json
örnek:
 #include "node_modules/mql5-json/index.mqh"

void OnStart () {
    JSON::Object* json1 = new JSON::Object()
        .setProperty( "number" , 123456 )
        .setProperty( "string" , "text" )
        .setProperty( "boolean" , true )
        .setProperty( "object" , new JSON::Object()
            .setProperty( "number" , 123456 )
            .setProperty( "string" , "text" )
            .setProperty( "boolean" , true )
            .setProperty( "array" , new JSON::Array())
        )
        .setProperty( "array" , new JSON::Array()
            .add( true ) // boolean
            .add( 123456 ) // sayı
            .add( "string" ) // string
            .add( new JSON::Object()
                .setProperty( "number" , 123456 )
                .setProperty( "string" , "text" )
            )
            .add( new JSON::Array()
                .add( true )
                .add( 123456 )
                .add( "string" )
            )
        );

     string exampleText = json1.toString();
     Print (exampleText);

    JSON::Object* json2 = new JSON::Object(exampleText);
     string objectKeys[];
    json2.getKeysToArray(objectKeys);

     if (
        json2.hasValue( "array" )
        && json2.isArray( "array" )
        && json2.getArray( "array" ).getLength() > 4
        && json2.getArray( "array" ).isBoolean( 0 )
        && json2.getArray( "array" ).getBoolean( 0 ) == true
        && json2.getArray( "array" ).isObject( 3 )
        && json2.getArray( "array" ).getObject( 3 ).isString( "string" )
        && json2.getArray( "array" ).getObject( 3 ).getString( "string" ) == "text"
        && json2.getArray( "array" ).getObject( 3 ).isNumber( "number" )
        && json2.getArray( "array" ).getObject( 3 ).getNumber( "number" ) == double ( 123456 )
    ) {
         Print (json2.toString());
         Print (json2.toString() == json1.toString());
    }

     delete json1;
     delete json2;
}

yazar: Kuzme Shevelev (seffele@gmail.com)
github: https://github.com/Senails/mql5-json

MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/53107

Fourier extrapolation of price Fourier extrapolation of price

Bu gösterge, fiyatlara bir trigonometrik model uydurur ve bunu geleceğe doğru geneller.

AR extrapolation of price AR extrapolation of price

Bu gösterge, fiyatları tahmin etmek için otoregresif bir model kullanır

Zamanlayıcı Zamanlayıcı

Zamanlayıcı için geri arama arayüzü

iS7N_TREND_1 iS7N_TREND_1

Basit düzeltme algoritmalarına sahip trend göstergesi; şimdilik tek renkli.