Tag Archives: operators

My message to hedge funds banking private equity and HFT operators

My message to hedge funds banking private equity and HFT operators

After posting this

 

Another fine example of bad HFT shops

I got this response via email:

To correct you…ITG is headquartered in NYC…not the netherlands.

My mistake, I got this confused with IMC: https://quantlabs.net/blog/2015/07/imc-hft-shop-hires-ubs-dark-pool-exec/

My apologies there.

I am disappointed with the use of the term “friggin cheaters”. Perhaps read more about what ITG does as a business before making comments like this. While I understand your writing style (I have been reading you for a number of years)‎, it’s unfortunate that you choose to dramatize this way.

I don’t believe this will be the last SEC settlement  in the industry nor will ITG’s settlement remain the largest for long.

Being fined should be taken seriously. Any employee of a firm who thinks it is ok to be fined by a trading regular comes a from a world of arrogance. Not putting you in this camp but seriously, your firm got busted for a misdeed. A big fine of $20M. That to me is the same as cheating! That is why banking and hedge funds are the #1 hated industry according to public opinion.

You need to be reminded you also work in a multi million dollar or even multi billion dollar fund making oodles of money while us schmucks fight for the crumbs trying to make a living on scraps.

As said, HFT is a good technology but hated upon because cheaters use this  for their own gain at the expense of others esp. retail trader.

Have a good day sir…

Join my FREE newsletter to see how I plan to apply automated trading 

 

 

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

It looks like ICE is now tightening up the rogue HFT operators with a conservative approach

It looks like ICE is now tightening up the rogue HFT operators with a conservative approach
Is there a middle ground here. I don’t think so but it will come down to a tighter leash

HFT under further scrutiny as ICE takes conservative approach

 

Join my FREE newsletter to learn more about the conservative HFT future

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

c++ interview questions with overloading and operators that cannot be overloaded

c++ interview questions with overloading

Overloading:
Have you overloaded operator new ? I said yes then Y did u do that ?
Overloading new will help a programmer to allocate memory in his own way, probably in a more optimzed manner. For example jus in case if somebody want to recycle the memory, by not actually deleting the Object instead maintaining a list of deleted object and then want to jus copy the new parameters there , instead of calling the allocate memory function and all.
To implement garbage collector you can overload new operator and intimate garbage collector every time you allocate memory.

How will you overload << operator for output? Why you have to make it friend ? Becoz, the leftmost operand in overloading << operator should be ostream& , while in member function the leftmost operand is implicitly *this pointer of class. parashift.com/c++-faq-lite/input-output.html#faq-15.8 Name the operators that cannot be overloaded?? sizeof, ., .*, .->, ::, ?:

Can an object be passed by value instead of reference as a parameter while overloading assignment operator ?
Yes you can but there is problem in doing so…
when you will pass the object by value then copy constructor will be called because It satisfy one of the condition that whenever an object is passed by value to a function copy constructor is called. Then your assignment operator will be executed….

Its good to have const just to make sure you are not changing anything inside the implementation.
when you will provide overloaded new operator. give example
when information stored in ‘front of block allocated’ is greater than the block itself e.g. you are allocating characters using new. the info to locate this block / info to locate next free block/info to locate next allocated block will be much larger than the data itself.
Another use thought I am not 100% sure is when you want to place your object at a specific location in the memory
When you want to use your own memory management instead of the default one.
Effectively, if you want to avoid heap fragmentation. If suppose different size of memory is going to get allocate everytime, we might run out of big chunk of memory which might reduce the performance, so you can handle your own memory by creating fixed amount of memory for a particular object.

This need will be highly in the case of real time embedded applications.

What is inline function??
The __inline keyword tells the compiler to substitute the code within the function definition for every instance of a function call. However, substitution occurs only at the compiler’s discretion. For example, the compiler does not inline a function if its address is taken or if it is too large to inline.
Can you overload a function based only on whether a parameter is a value or a reference?
No. Passing by value and by reference looks identical to the caller.

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

C++ interview question including operators like conversion operator and assignment operator

Operators:
What’s the difference between assignment operator and copy constructor

copy constructor can do a deep copy whereas assignment is merely a shallow copy ie references.
wrong…
When not provided, compiler will provide both; which does bitwise copy

A copy constructor initialises a new object from an already existing object. An assignment operator is used to copy values from one object to an already existing object.
The key difference here is that for assignment operator the target object already exists.
Right, that’s from Effective C++

I think the difference lies in the fact that using a copy constructor allows you to make a deep copy while the assignment operator only makes a shallow copy.

A sample code for copy constructor.. though i have not made use of it for making a deep copy.. will post it soon

#include
#include
#include
using namespace std;

struct copy_variable
{
public:

int abc_1;
int abc_4;
char abc_2;
char abc_3[10];
copy_variable()
{
}
copy_variable(const copy_variable& some_object):abc_2(‘a’),abc_1(1000)
{
abc_1 = some_object.abc_1;
strcpy(abc_3,”something”);
abc_4 = 0;
cout<<"The values of abc_1, abc_2, abc_3\n" <
#include
#include
using namespace std;

struct copy_variable
{
public:

int abc_1;
int abc_4;
char abc_2;
char abc_3[10];
copy_variable()
{
}
copy_variable(const copy_variable& some_object):abc_2(‘a’),abc_1(1000)
{
abc_1 = some_object.abc_1;
strcpy(abc_3,”something”);
abc_4 = 0;
cout<<"The values of abc_1, abc_2, abc_3" <<"\t"<

HOW DO YOU START A PROFITABLE TRADING BUSINESS? Read more NOW >>>

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!