PureBytes Links
Trading Reference Links
|
This is such a useful function I thought I would mention that it can
also be a little tricky to use.
Earlier today I was testing a system in Tradestation and TS kept
yelling at me to increase the minimum # of bars for the test. I
thought it was the ATR function I was using, but I finally realized
the BarsSinceEntry had climbed to over 400 bars in a long trend in
the stock price. So....
a. You might want to provide a parameter the user can pass to the
routine to limit the number of bars. This assumes he knows why he
wants to limit the # of bars.
b. You could limit the # of bars internally to the routine to maybe
180-300 bars. The user has no Idea it is happening.
c. Or tell the user in an example why he might want to test for the #
of bars in BarsSinceEntry and substitute a fixed number to keep the
minimum bars for a test to a reasonable size.
This reminds me why I never had any skill or desire to be a
programmer. There are people who can create software tools and
people who can only use them. I know which category I fall into...
Trader
|