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

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.
 
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.

 
Ah OK, I misread the code, all I saw was "future" and got confused.
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
 
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

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++"
 
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

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.
 
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.

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
 
Back
Top