Showing posts with label Thinkorswim. Show all posts
Showing posts with label Thinkorswim. Show all posts

Wednesday, January 18, 2012

Market Analysis - Jan 18, 2012


Market gapped higher after a strong overnight rally and was signalling a breakout which I believe many got trapped into and then for the whole day it was a choppy session after session with nothing happening.
A strong breakout happens with a stampede. A gap open and GO is the trademark. Everything and I mean everything is bought (I will point out a day when that happens). This kind of thing happens from oversold conditions or some long 10+ day of consolidation around a moving average. But that kind of trademark was not even present.
As pointed out before, the negative seasonal pattern is taking hold of the market  and hopefully tomorrow the Seasonal Ghosts comes out to haunt the breakout bulls.
The breadth numbers were nicely positive today. with Advances as high as 2405 and decliners as low as 142 and finally settling the day at 1841 vs 1151. The 4% breadth numbers are also up 129 / 84 (from patientfisherman.com)
VIX went higher to converge with his big brother VX which would have frusturated the volatility traders also and people trying to scalp VIX would have lost money.
In summary, the market uptrend is not dented at all proven by our trusty EMA clouds. (The same kind of study is used by www.wizards.com for such a higher price.)
As the seasonal bias sets in, I am more concerned about the overbought condition, the bullish sentiments on blogosphere.
Posts copied from premium members site (www.bigbullbigbear.com)

Saturday, December 31, 2011

Year End Market Analysis


Once again SP-500 is lingering near 1260 zone. This zone is a significant zone because 200 day SMA is right around 1258. It is also the point where the index meets the downtrend line(resistance line) connecting the recent market tops resulting into a coiling pattern.

This is the fourth time since October that SP-500 has tried to break this level.  During the last few tries it has failed failed miserably, and to add to the misery it resulted in fast paced sharp dagger declines back towards the uptrend support line that connects recent market lows. So as soon as market reaches these levels, lot of institutional bears along with retail bear crowd come out and go short, pulling the market down and that is exactly what we are seeing. SP-500 was trading slightly above the 200-day SMA and the the downtrend line but on Friday close, it went a bit negative below 200 day SMA. Hence we cannot say with confidence that we have a breakout. Also the NYSE volume was not there during the holiday week to give it more convincing look either.


However, a breakout  accompanied by volume, leading sectors (XBD, SOX and IYT)  would provide lot of convincing power.
Breadth indicators ( the one I follow is developed by Pradeep Bonde ) has been less supportive of this up move and has been like that whole year around.  The current rallies from oversold levels  on SP-500, from mid-December to now, had a strong breadth reading on 20th December but there was no follow through. We would like to see the Breadth numbers getting hammered out of the park on next consecutive days. This is a negative divergence and is giving a warning that upside breakout might be a fakeout.  So we will keep a close eye on these numbers also. 

The Volatility index mighty VIX has been declining steadily since October. This it self is a bullish signature. VIX below 150 day MA is usually bullish and we have been seeing rallies. From the above picture of VIX you can see that VIX is trading below its long term MA. Even during the recent sell off on Thursday, it did not cross its 20 day MA which is acting like a resistance now. 
As pointed out earlier, I have been watching the VX futures on CFE exchange  also to see the direction of VIX options. The VIX futures VX are trading  at lot higher prices than VIX itself. 
i.e  The institutional or smart money traders are worried about Euro crisis and Market tumbles and hence they been buying protection in the form of SP-500 puts and/or VIX futures or VIX calls. This basically has caused the price of VX futures (VIX calls and puts are hedged by its futures as there is no outright buying or selling of VIX index)
One should be worried about this type of setups as Smart monies are usually right. But again we let the Markets tell us and then we follow rather than taking a outright stand. One can take a outright stand and that can be very profitable but you need protective stops just in case you are wrong.
Our trusty indicator $BPNYA is also on buy side as of now. The RSI indicator with $BPNYA is usually telling a sign when $BPNYA is getting frothy or getting flattened out

As many of you know that I don't to get into any market prediction business but I expect markets to give you  an overall 11% that historically it has been giving you. There will be lots of up and downs in the year and those are hard to predict but those up and downs are the opportunity times and that is where we have an edge and excel.  
Avoid bad periods or even go short and then when the market turns we go bullish. So I believe achieving 20% returns safely is still possible and is the goal for this year. 
I am closing this year with 54.17% returns in ETF portfolio (join the bigbullbigbear team), nice 31.18% in 401k portfolio.
Adios 2011 and Wish you all Happy New 2012.


Friday, September 23, 2011

TOS code with 10 SMA , Choice of SMA and EMA and Clouds




#########################################################
## BigbullandBigBear LLC
## Date: 22nd Sept 2011
#########################################################

input price       = close;
input ColoredCloud = yes;
input ColoredFill = yes;
input BreakArrows = yes;
input displace    =  0;
input length      = 10;

def lastBar = if (IsNaN(close), 1, 0);

input AverageType = {default SMA, EMA};
def MA;
switch (AverageType) {
case SMA:
    MA = Average(close, Length);
   
case EMA:
    MA = ExpAverage(close, Length);
 
}

def MAStatus =
  if close >MA then 2    
  else
    if close < MA then -2  
    else 0    ;                          

rec BreakStatus = compoundValue(1,
  if BreakStatus[1] == maStatus or maStatus == 0 then BreakStatus[1]
  else
    if mastatus == 2 then 2
    else -2, 0);

plot UpperBand = MA*1.01;
UpperBand.AssignValueColor (
    if !Coloredcloud then Color.White
    else
      if BreakStatus[0] == 2 then Color.Green
      else Color.Red);
UpperBand.SetLineWeight(1);

plot LowerBand = MA*.99;
LowerBand.AssignValueColor (
    if !Coloredcloud then Color.White
    else
      if BreakStatus[0] == 2 then Color.Green
      else Color.Red);
LowerBand.SetLineWeight(1);

# Breakout/down arrows.
plot BreakOutArrow =
  if BreakArrows then
    if BreakStatus[0] == BreakStatus[1] then double.NAN
    else if BreakStatus[0] == 2 then
      close else double.NAN
  else double.NAN;
BreakOutArrow.SetPaintingStrategy(PaintingStrategy.Arrow_Up);
BreakOutArrow.SetDefaultColor(Color.Green);
BreakOutArrow.SetLineWeight(3);

plot BreakDownArrow =
  if BreakArrows then
    if BreakStatus[0] == BreakStatus[1] then double.NAN
    else if BreakStatus[0] == -2 then
      close else double.NAN
else double.NAN;
BreakDownArrow.SetPaintingStrategy(PaintingStrategy.Arrow_Down);
BreakDownArrow.SetDefaultColor(Color.Red);
BreakDownArrow.SetLineWeight(3);

# colored clouds
plot GreenUpper = if ColoredFill and BreakSTatus[0] == 2 then
  UpperBand else double.NAN;
GreenUpper.SetDefaultColor(CreateColor(0,100,0));
plot GreenLower = if ColoredFill and BreakStatus[0] == 2 then
  LowerBand else double.NAN;
GreenLower.SetDefaultColor(CreateColor(0,100,0));
AddCloud (GreenUpper, GreenLower,CreateColor(0,100,0), color.red);

plot RedUpper = if ColoredFill and BreakSTatus[0] == -2 then
  UpperBand else double.NAN;
RedUpper.SetDefaultColor(CreateColor(200,0,0));
plot RedLower = if ColoredFill and BreakStatus[0] == -2 then
  LowerBand else double.NAN;
RedLower.SetDefaultColor(CreateColor(200,0,0));
AddCloud (RedUpper, RedLower, CreateColor(200,0,0), color.green);

Sunday, March 27, 2011

How to add a Script to Thinkorswim Platform

Lot of you requested the TOS code this morning and some of you requested that I add pictures showing how to add the code and save it as a Study.

Hopefully this should help you to add the script in.. If you still need help, please e-mail me.