Exporteer mt4-gegevens naar verschillende kolommen van een .csv-bestand
Results 1 to 2 of 2

Thread: Exporteer mt4-gegevens naar verschillende kolommen van een .csv-bestand

  1. #1
    Ik probeer momenteel enkele scripts/EA's te programmeren die een bepaalde datum van de markten exporteren voor toekomstige analyses van die gegevens in een .csv-bestand.

    Ik ben hier erg nieuw in en ik heb deze functie nu gebruikt:

    nietig SchrijfCSV() {
    int handle = FileOpen( StringConenate( Symbol(), .csv ),
    FILE_CSV|FILE_READ|FILE_WRITE, ','
    );
    als ( behandelen gt; 0 ) {
    FileSeek(handvat, 0, SEEK_END);
    FileWrite( handvat,
    TimeToStr( TimeCurrent(), TIME_DATE )
    );
    FileWrite( handvat,
    Hallo );
    BestandSluiten(handvat);
    }
    }

    Maar in mijn Excel-bestand verschijnen beide in dezelfde kolom:

    2014.10.24
    Hallo

    In de cellen A1 en A2. Maar ik zou graag willen dat de gegevens worden geschreven in A1 en B1. Kan iemand me bellen en vertellen hoe ik naar de rechterkolom kan gaan? Kan ik de celnaam ophalen (B2, J5, ...) die zal worden geschreven?

    Dank je

    EDIT: ik moest gewoon het scheidingsteken gebruiken;

  2. #2
    U moet de 2 info's tegelijkertijd verzenden in plaats van 2 keer. Je schreef: Code ingevoegd FileWrite( handle,TimeToStr( TimeCurrent(), TIME_DATE )); FileWrite (handvat, hallo); U moet het volgende doen: Code ingevoegd FileWrite( handle,TimeToStr( TimeCurrent(), TIME_DATE),hallo);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.