Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

eggzactly

Members
  • Content Count

    4
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    lisbon
  • Country
    Portugal
  • Gender
    Male

Trading Information

  • Vendor
    No
  • Favorite Markets
    futures
  1. Hi, Sorry for so many questions. Why seconds always appear like this,and that ticks was not in the same second ? 2009-10-13 03:38:00;1.47720000 2009-10-13 03:38:00;1.47720000 2009-10-13 03:38:00;1.47720000 2009-10-13 03:38:00;1.47720000 2009-10-13 03:38:00;1.47720000 2009-10-13 03:38:00;1.47717500 2009-10-13 03:38:00;1.47717500 2009-10-13 03:38:00;1.47715000 regards, eggzactly
  2. Thanks for quick answer. Well i resolve the issue of decimal places, thanks. Abou the time i tried ELTimetoDateTime_s but with no result :-( my problem is getting the time in the format HH:MM:SS . Regarding the file, i see the text function but unfortunately i don´t know how to code that in the file function, can please help me. thanks in advance. regards, eggzactly
  3. Hi, i´m trying to create an indicator that exports realtime data to a csv file, i stuck in two points now, first the code : variables : ask(0),bid(0),result(0); ask = insideask; bid = insidebid; result = (bid + (ask - bid) / 2); print( file( " ****1 " ), DateFormat( "DDMMYY", "-"), " ", ***2 , ";", result ); plot1(result,""); ****1 - is possible to put here the symbol and current date each time i plot this in a chart ? ****2 - i try to figure out a way to put here HHMMSS but i couldn´t do it In the result it´s strange because only the first 2 decimal appears, for instance in fx instead of appear 1.4875 only appears 1.48 please can somebody help me in this task, really apprecciated. regards
  4. Hi, Is a script to export metatrader data to csv files, what i want is export tickbytick easy language data to a csv file - there was no credit on file. Can somebody help me convert this script to easy language please : string gs_76 = ""; string gs_84 = ""; int init() { gs_84 = Symbol(); return (0); } int deinit() { return (0); } int start() { double l_ask_0 = MarketInfo(Symbol(), MODE_ASK); double l_bid_8 = MarketInfo(Symbol(), MODE_BID); double ld_16 = l_bid_8 + (l_ask_0 - l_bid_8) / 2.0; log("" + ld_16); return (0); } void log(string as_0) { int li_8 = TimeLocal(); li_8 -= 18000; string ls_12 = ""; ls_12 = "" + TimeYear(li_8); ls_12 = ls_12 + "-" + TimeMonth(li_8); ls_12 = ls_12 + "-" + TimeDay(li_8); int l_file_20 = FileOpen(gs_76 + "\\" + "log__" + StringSubstr(gs_84, 0, 6) + "_" + ls_12 + ".csv", FILE_CSV|FILE_WRITE|FILE_READ, ';'); if (l_file_20 > 0) { FileSeek(l_file_20, 0, SEEK_END); FileWrite(l_file_20, ls_12 + " " + TimeHour(li_8) + ":" + TimeMinute(li_8) + ":" + TimeSeconds(li_8), as_0); FileClose(l_file_20); } } Thanks in advance eggzactly
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.