Quote from vincegata:
That would make order generation as simple as it gets but I have a couple of comments-questions:
1) Let's say I have a trend following strategy and market starts going up then Strategy Execution module will be sending a new buy order every tick to the Order Management module. OMS will accept the first order and reject the rest however this constant order flow requires some extra computing power or it will slow down the system otherwise.
Glance at the "key principles" I posted to river. There you see the "suppression circuit concept". You cut off at the pass any incoming data that is NOT going to move the trend forward.
The setting for optimizing making money is in the 10 to 100 milsec range. Some people get into the "noise is always there" type thinking. The markets have no noise when a thorough systemmic appraoch is in use. For one thing, price is NOT a leading indicator of price. you have to only work with leading variables of price.
2) When the market went up I took a long position then market starts ranging so my algo does not generate neither buy nor sell orders hence I am stuck with the long position until god knows when. How to handle that, just do nothing and wait for the downtrend until Strategy Execution sends sell order?
solving this one is fun. When you think about what wsn't that, then you are on the way. Making money is NOT going on. Neither is losing money.
Naturally you smale and look at he range and compare the range to the fixed and variable costs. you see that they are still trivial of you decide to trade thefaster fractal in the range you are sitting in.
this lets you exmine the interlocking ratio of fractals. as you give it a look you prove it is fixed.
the choice becomes using the next faster fractal to suppress until its last move or going to the fractal to p[ull down a greter efficiency and effectiveness in extraction.
By this time in your reasoning you are making money from price change exclusively.
3) I have a short term and long term strategies that both generated buy on the uptrend so I am double long position. Now market goes down somewhat/temporarily so my algo generates sell which would be right for the short term but not for the long term position, but it will sell both positions. How to handle that?
This is the topic known as gating and killing. It has component called failsafe and another one called "I know I know".
We mix and match all four of these and you are on your way.
In the fifties when I did trouble shooting of large vacuum tube systems, i noticed that bi stable multivibrators were all over the place in circuitry. This is where counting became a component of repeated addition more often known as multiplication.
the counting was a count down.
To stop the slower Fractal form trading, do not let it be "ready".
There are a lot of multichart traders who cannot transfer their pargmatism from experience. the alternative for them for making money is to count down the faster fractal than their trading fractal. they do not "get it". this is why nodoji will not trade more than 6 contracts. and she thinks redneck made her that way.
Add count down countrs to your quiver and use the output for "killing the slower fractal and for "gating" the faster fractal. In this way you create a "failsafe" routine and it takes less data processing capacity.