Those packages are great but overkill for your simple strategy. Should be dozens of LOC, not hundreds.I use R and not to sure how I would test this. It would take hundreds of lines of code using quantmod and performance analytics.
Those packages are great but overkill for your simple strategy. Should be dozens of LOC, not hundreds.I use R and not to sure how I would test this. It would take hundreds of lines of code using quantmod and performance analytics.
It would be more logical to buy the lows and sell the highs (not the breakout but the real top).
Those packages are great but overkill for your simple strategy. Should be dozens of LOC, not hundreds.
. Could you explain a bit more? "Yeah, ya wanna get rich trading, it's easy, first you pick the tops and bottoms OK...."I don't think you can determine that in real time - only after the fact. At least I never could.
It seems like a reasonable strategy to buy new all time highs on good volume on smaller companies with a stop below the previous day. For example I initiated a play on TUSK yesterday. Does anyone have experience with this/similar strategy? I have a trailing stop initiated and will hold until the stop is hit.
Theoretical question as well. Whose lunch am I eating by buying these all time highs? Thanks for your opinions and comments.
3. Set a variable to 0 or ±1 to indicate current "state"3. Now what if the next day is an all time high with good volume? I dont want to buy more.
4. How do I create a trailing stop order?
5. If i want to test buying highs when short interest is high?
I don't expect you to give me an indepth answer but could you point me in the right direction?
One thing that I really took away from working with Pete Steidelmayer was the time element in analyzing markets. And it has really helped me out over the years.
If a market makes new highs but aggressive offers quickly come in to hit bids and drive the price valuation back down, quite obviously the market rejected that higher price valuation. The important term here is quickly. In fact, when I used to scalp markets years ago I would race those orders and hit bids. On a chart, you will see that phenomenon usually on a news or economic release and you'll see a 'flagpole' candle or bar.
Conversely, if a market makes new highs and the valuation tends to hold for the most part over a period of time - it means that there are some substantial bids working in the market and that market participants have accepted the new higher price valuation.
I'm just going to spitball here, but maybe the thing to do is to wait some period of time to see if the new higher valuation is accepted. If it is, there's new buyers coming into the market and at some point in time short covering will add some fuel to the fire.
Personally, I am just thrilled to see someone who isn't stricken with the disease of fading every major move they see. Kudos.
3. Set a variable to 0 or ±1 to indicate current "state"
4. Function cummax(x) is your friend, ie cummax - current price
5. Logical subsetting, which is fundamental in R, covered in the Venables book
I don't think you can determine that in real time - only after the fact. At least I never could.