Hi ,
I'm trying to accomplish following
1) determine average ATR of last 100 minutes PREVIOUS to start of day
2) at start of day
determine if larger trend (13 crossing 34) is up or down
3) if down (up)
wait for uptick(downtick) of 1 atr
short (buy) stock
(place very tight stop - probably 1 atr away)
take profits as soon as stock down (up) up 2 atr's
4) stop losses if moves up (down) by 1 atr
This program works with percentages, but not with ATR's. Those percentages would have to be changed on just about every security
which is not a good program. (Forget the fact that this is currently not profitable).
My problem is that the ATR search dramatically slows down the program, and I must wait until 100 minutes have elapsed before starting.
Second issue is first X number of ATR number in list are NAN's.
My Python skills are seriously challenged here.
Appreciate any suggestions.