Linkers::X - Let's code in C++ , Daytrade & Daydream :)

Discussion in 'App Development' started by LinkersX, Dec 26, 2017.

  1. Ah OK, I misread the code, all I saw was "future" and got confused. Didn't see that it was about an economic calendar.

    I would actually use negative indexing to look into the past, and positive to look into the future. There is precedent for this in open source tools as far as I know.
     
    #81     Dec 29, 2017
    LinkersX likes this.
  2. LinkersX

    LinkersX

     
    #82     Dec 29, 2017
  3. sle

    sle

    I am going to highjack this thread and use it to as stupid C++ questions. For starters, is there a good primer to using “modern” cpp and best practices? I was told by my JM that my code is very 90s and decided to remedy that
     
    #83     Dec 29, 2017
  4. LinkersX

    LinkersX

    nooby_mcnoob will help you out there. I got silly way of understanding C++

    and btw as the thread title sez "Lets code in C++"
     
    #84     Dec 29, 2017
  5. 90s eh. I would say Scott Meyers is a good start, but it may be more 2000s than 2010s. I would also recommend a Tour of C++ by Stroustrup which is 90s C++ transliterated to modern C++, but pretty good code style nonetheless.
     
    #85     Dec 29, 2017
    sle and LinkersX like this.
  6. LinkersX

    LinkersX

    Code:
    
    // # this code will compile and execute on MQL4 & 5, NinjaScript, NinjaTrader 7 & 8, cAlgo, ACSIL SierraChart
    
    // https://github.com/LinkersX
    
    #include<LinkersX.h>
    
    struct CurrencyMeter
    {
    USD,
    AUD,
    GBP,
    EUR,
    JPY,
    NZD,
    CAD,
    CNY,
    };
    
    xCurrencyMeter meter1;
    CurrencyMeter cm1;
    
    meter1.get(cm1, 5); // get currency meter lookBack is 5 bars
    
    
    
     
    #86     Dec 29, 2017
  7. Fascinating
     
    #87     Dec 29, 2017
    LinkersX likes this.
  8. LinkersX

    LinkersX

    Thanks Man!

    Happy 2018. a year when an average trader Joe strikes back ;-)))))
     
    #88     Dec 29, 2017
  9. LinkersX

    LinkersX

     
    #89     Dec 30, 2017
  10. LinkersX

    LinkersX

     
    #90     Dec 30, 2017