NIFTY Options Trading by RAJ

How do you use OAT tool?

  • For Intraday Naked Options trading

    Votes: 58 37.7%
  • For Intraday Pair trading of Options

    Votes: 27 17.5%
  • For Intraday Futures trading

    Votes: 18 11.7%
  • For Positional Naked Options trading

    Votes: 35 22.7%
  • For Positional Pair trading of options

    Votes: 29 18.8%
  • For Positional Futures trading

    Votes: 11 7.1%
  • To trade in Cash market

    Votes: 13 8.4%
  • Overall trading has improved with OAT

    Votes: 27 17.5%
  • Understanding of Options has improved with OAT

    Votes: 57 37.0%

  • Total voters
    154
  • Poll closed .

ajeetsingh

Well-Known Member
......... In fact just a few days ago i wanted to ask boarders is someone could help code an Afl for drawing similar lines.
Code:
sx=Null;b=Null;ai=Null;x=Null;
reg=x1=x2=x3=z1=z2=z3=Null;	
rega=x1a=x2a=x3a=z1a=z2a=z3a=Null;	
	
bi=BarIndex();	
eb=LastValue(bi);	
order=Param("n-th Order",3,1,8,1);	
bars=Param("Lookback Period",100,50,500,1);
sv=ParamToggle("Use Selected Value","Off|On",1);
alt=ParamToggle("Error Levels","Fibonacci|Standard",0);
ecart=1.61803399;
  
if(sv)
{
	eb=SelectedValue(bi);
	bb=Max(0,eb-bars);
}
else
{
	bb=Max(0,eb-bars);
}
fin=eb;
nn=order+1;
sx[1]=bars+1;

if(fin>bars)
{
for(mi=1;mi<=2*nn-2;mi++)
{
	suml=0;
	for(n=0;n<=bars;n++)
	{
		suml=suml+n^mi;
	}
	sx[mi+1]=suml;
}
for(mi=1;mi<=nn;mi++)
{
	suml=0;
	for(n=0;n<=bars;n++)
	{
		if (mi==1)
			suml=suml+Close[fin-n];
		else
			suml=suml+Close[fin-n]*n^(mi-1);
			b[mi]=suml;
	}
}
for(jj=1;jj<=nn;jj++)
{
	for(ii=1;ii<=nn;ii++)
	{
		kk=ii+jj-1;
		ai[(ii-1)*nn+jj]=sx[kk];
	}
}
for(kk=1;kk<=nn-1;kk++)
{
	ll=0;
	mm=0;
	for(ii=kk;ii<=nn;ii++)
	{
		if(abs(ai[(ii-1)*nn+kk])>mm)
		{
			mm=abs(ai[(ii-1)*nn+kk]);
			ll=ii;
		}
	}
    if(ll==0) break;
	if(ll!=kk)
	{
		for(jj=1;jj<=nn;jj++)
		{
			tt=ai[(kk-1)*nn+jj];
			ai[(kk-1)*nn+jj]=ai[(ll-1)*nn+jj];
			ai[(ll-1)*nn+jj]=tt;
		}
		tt=b[kk];
		b[kk]=b[ll];
		b[ll]=tt;
	}
	for(ii=kk+1;ii<=nn;ii++)
	{
		qq=ai[(ii-1)*nn+kk]/ai[(kk-1)*nn+kk];
		for(jj=1;jj<=nn;jj++)
		{
			if(jj==kk)
				ai[(ii-1)*nn+jj]=0;
			else
				ai[(ii-1)*nn+jj]=ai[(ii-1)*nn+jj]-qq*ai[(kk-1)*nn+jj];
		}
		b[ii]=b[ii]-qq*b[kk];
	}
}
x[nn]=b[nn]/ai[nn*nn];
for(kk=1;kk<=nn-1;kk++)
{
	tt=0;
	ii=nn-kk;
	for(jj=1;jj<=nn-ii;jj++)
	{
		tt=tt+ai[(ii-1)*nn+ii+jj]*x[ii+jj];
		if(ai[(ii-1)*nn+ii]!=0)
			x[ii]=(b[ii]-tt)/ai[(ii-1)*nn+ii];
	}
}
for(n=0;n<=bars;n++)
{
	suml=0;
	for(kk=1;kk<=order;kk++)
	{
		suml=suml+x[kk+1]*n^kk;
	}
	reg[fin-n]=x[1]+suml;
}
}
SetChartOptions(0, chartShowDates);
Title = "Symbol: "+ Name()+ "\nPoly Order: "+order;
if(alt)
{
dev=StDev(Close-reg,bars);
sd=dev[fin];
x1a=reg+sd*1;//68%
x2a=reg+sd*2;//95%
x3a=reg+sd*3;//99.83%
z1a=reg-sd*1;
z2a=reg-sd*2;
z3a=reg-sd*3;
Plot(C, "Close",colorLightGrey,styleCandle);
Plot(reg,"reg",colorBlue,1);
Plot(x3a,"x3a",ColorRGB(255,0,0),styleThick);
Plot(x2a,"x2a",ColorRGB(255,100,100),styleDashed);
Plot(x1a,"x1a",ColorRGB(255,200,200),styleDashed);
Plot(z3a,"z3a",ColorRGB(0,255,0),styleThick);
Plot(z2a,"z2a",ColorRGB(100,255,100),styleDashed);
Plot(z1a,"z1a",ColorRGB(200,255,200),styleDashed);
PlotOHLC(x3a,x3a,x1a,x1a,"",ColorRGB(30,0,0),styleCloud|styleNoLabel,0,0,0,-1); 
PlotOHLC(z1a,z1a,z3a,z3a,"",ColorRGB(0,30,0),styleCloud|styleNoLabel,0,0,0,-1); 
}
else
{
dev=StDev(Close,bars);
sd=ecart*dev[fin];
x1=reg+sd/(1.382*1.618);
x2=reg+sd/1.382;
x3=reg+sd;
z1=reg-sd/(1.382*1.618);
z2=reg-sd/1.382;
z3=reg-sd;
Plot(C, "Close",colorLightGrey,styleCandle);
Plot(reg,"reg",colorBlue,1);
Plot(x3,"x3",ColorRGB(255,0,0),styleThick);
Plot(x2,"x2",ColorRGB(255,100,100),styleDashed);
Plot(x1,"x1",ColorRGB(255,200,200),styleDashed);
Plot(z3,"z3",ColorRGB(0,255,0),styleThick);
Plot(z2,"z2",ColorRGB(100,255,100),styleDashed);
Plot(z1,"z1",ColorRGB(200,255,200),styleDashed);
PlotOHLC(x3,x3,x2,x2,"",ColorRGB(30,0,0),styleCloud|styleNoLabel,0,0,0,-1); 
PlotOHLC(z2,z2,z3,z3,"",ColorRGB(0,30,0),styleCloud|styleNoLabel,0,0,0,-1); 
}

 
Rule 1: If the MAX (CHG in OI) @ PE > MAX (CHG in OI) @ CE, then it is a Bullish market.

Why MAX (CHG in OI) PE will be a Bullish signal?
For the Market to exist we should be Have Bears and Bulls. Market is always trading in a specified range for any day. So we have to assume that BULLs will try to Protect the Bottom of the Range and Bears will Try to Protect the Top of the Range (Not let the market beyond the Range). BULLs have LONG Positions in the market. So to protect their LONGs they take the Opposite positions in the Options market by Selling the PUTS (PE) to hedge their positions, so that if the market goes in the opposite direction of their Longs they can make money using Options. But normally the market makers make money both in the Equities and in the Options market. When They build a Huge volume around a Strike Price, they are basically sending a signal to the BEARS saying "This is our area - We will not let you go below this level". So BULLs normally control a Lower Strike and BEARS normally control a Upper Strike. For a given day this Range would act as the Intraday Range.
Hi,

Im new to this theard. I read this rule & found one small correction.

In above quote, its says, BULLs will sell PUTS to hedge their position .. i see they buy PUTS to hedge their position

Correct me if im wrong



regards
Vijai
 

Riskyman

Well-Known Member
Code:
[IMG]http://s7.postimg.org/4fkvsr90b/Untitled.jpg[/IMG][/QUOTE]

Ajeet, 

Thank you so much. I was wondering why the curves are plotted on a part and the remaining half is not. Is there anyway you can have a code to extend to te entire range of price movement?

Thanks

Edit: Just saw that as i click on the bars on the left the band plots on where the cursor is. Great. But if you have a band that went all the way from left to right it would be great.
 

Riskyman

Well-Known Member
He has explained it in the past and he took his time to explain it and now you take your time to read the thread, as it is not his duty to explain it again and again.

Good luck
I didnt want him to explain the idea. If you read my post you will "realize" I was asking him how he draws it on his charting platform. Thats all.
 

Riskyman

Well-Known Member
I searched the thread of "polynomial" and came up with the these results. I am sure you will find the explanation somewhere in there.

Also, Healthraj has explained this in an earlier post (no. 6059) but I couldn't understand it. If you get the logic of it, please explain it for the benefit of the rest of us. Also keep in mind that not everyone uses Amibroker, I don't use Amibroker so an AFL will not be of any use. So, please come up with an algorithm rather than an AFL :).

Thanks.
From his pictures, its looks more like cycles trading. Difference being that he is using only 80 bars. When i have a bit of time, i could draw a small explanation and post it.
 

anilnegi

Well-Known Member
NIFTY Playing for the budget on 28-Feb-15

Indian budget is on 28-Feb-15. There is also special trading session planned on 28-Feb-15. But most of the brokers do not provide any Leverage since the volatility would be high.

As per the March OI range, The range is 8500-9000/8950


Daily Futures Range 8461-8699-8822-9086-9184.


Hourly SPOT Range - 8700-8732-8861-8856-9023


Weekly Futures Range - 8553-8558-8981-9148-9408


The INDIAVIX Range is 18 to 24. It is now at 21.

So what could be the Strategy in Options ?

The MAR-15 Series options is already trading at high Premiums.

So I think we can expect the Premiums to come down during the Budget day and then the Buying might come in... So look for the INDIAVIX to go to levels of 18, Where one can BUY options.

At the current levels, using the Weekly chart, One can sell the Pair 8550 PE-9400 CE for 120.

Ideally it would be a Good buy at 8500 and at around 9400, it is a SELL.
Raj bhai i think you wrongly mentioned 9400 it should be 9000, where max OI is present.

thanks

ani negi
 

anilnegi

Well-Known Member
In the Weekly chart 8500 is the support and 9400 is the Resistance
Yes raj bhai it is perfect, but as per OI we should find pair around those level or you have modify the entry now.

thanks
anil negi
 

ajeetsingh

Well-Known Member
Ajeet,
....................
But if you have a band that went all the way from left to right it would be great.
Right click on chart, under heading Parameters
go to "Look Back period"
by default its 100, increase it to whatsoever you like, Maximum limit set is 500
You can increase beyond by editing the max value in AFL
Lookback period is past bars/candles.
 

healthraj

Well-Known Member
Yes raj bhai it is perfect, but as per OI we should find pair around those level or you have modify the entry now.

thanks
anil negi
At the current levels, using the Weekly chart, One can sell the Pair 8550 PE-9400 CE for 120.
I had already Gave my Less Risky Trade to SELL 8550 PE and 9400CE, Which closed today at 100 - 20 points made...

But If one wants to Go Long on Puts or Calls, my suggestion was to do it at 8500/50 or 9400.

Yes you can SELL the MAX OI Pair at the right time...
 
Last edited:

Similar threads