Sensex

Friday, November 20, 2009

Re: [Technical-Investor] K.A. Vish - AFL - Kbrain

 

Dear AP and Seniors,
Is suzlon a sell now as it is touching the resistance (down trend line) with red candle + very high volume. I am not that confident in TA. Can u advice whether it is a correct observation.
 
thanks and regards
tkrajnambiar


From: Prashanth K <prash454.ta@gmail.com>
To: Technical-Investor@yahoogroups.com
Sent: Tue, 10 November, 2009 12:05:23 PM
Subject: Re: [Technical-Investor] K.A. Vish - AFL - Kbrain

 

I am using AB Ver.5.28 Beta, but the formula seems to be backward compatible since no new features are being used.


Error may creep in due to the extremely high lookback period that has been set here,

SetBarsRequired( 1000000,0) ;

Reduce it and the problem should disappear.

Am also attaching the AFL I used to test herewith.

Cheers

Prashanth

On Tue, Nov 10, 2009 at 1:16 PM, Chandrashekhar Bondre <cnbondre@yahoo. com> wrote:
 

Hi,
 
Prashant Sir,
 
I did it as per your instructions but getting the errors as stated earlier.
 
Thanks and Regards,
 
 
CNB

Sent: Tue, November 10, 2009 12:28:00 PM

Subject: Re: [Technical-Investor ] K.A. Vish - AFL - Kbrain

 

To get a Buy / Sell Signal, you need to Scan.


Before you scan, click on Parameters and change 
BrianTrend1Signal to Yes from the default No.

Cheers

Prashanth

On Tue, Nov 10, 2009 at 12:24 PM, Chandrashekhar Bondre <cnbondre@yahoo. com> wrote:
 

Hi,
 
Prashant Sir,
 
Thanks a lot for your quick responce. Sir, it would be sufficient buy n sell for now.
 
Thanks and Regards. 


From: Prashanth K <prash454.ta@ gmail.com> Sent: Tue, November 10, 2009 11:55:40 AM

Subject: Re: [Technical-Investor ] K.A. Vish - AFL - Kbrain

 

What are the variables / parameters you require in the Exploration?


Cheers

Prashanth

On Mon, Nov 9, 2009 at 8:27 PM, Chandrashekhar Bondre <cnbondre@yahoo. com> wrote:
 

Respected ,
 
FJ and Vish,
 
Please accept my thanks for a quick reply and taking efforts to help me out.
Sir, I tried my level best before posting the request and got the errors as described by "FJ". 
Ploting has no problem with the afl;  but EXPLORATION part is very very difficult for me.
Hence again requesting the Seniors to help.
 
Regards,
 
CNB


From: FLOYD JOHNY LEWIS <fjl24@yahoo. com> Sent: Mon, November 9, 2009 12:11:34 AM
Subject: Re: [Technical-Investor ] K.A. Vish - AFL - Kbrain

 

Dear Vish
 
Tried using the exploration based on the below complete AFL as was posted by CNB after applying your filters.
 
Unfortunately, am getting couple of errors pertaining to initialization of "p", "tm", "bstop" etc - Error No 29 - variables not initialized before use.
 
Am not able to understand why as the above variables have been initialized in the AFL code.
 
Would appreciate if you could give your valuable comments on the same.
 
Thanks in advance
Best Regards
Floyd

--- On Sun, 11/8/09, Vijay Lingam <ohmmsai@yahoo. in> wrote:

From: Vijay Lingam <ohmmsai@yahoo. in>
Subject: Re: [Technical-Investor ] OOPS
To: Technical-Investor@ yahoogroups. com
Date: Sunday, November 8, 2009, 1:11 PM

 

Very good formula. thanks for the sender.

From: vish <vichooo_1999@ yahoo.com>
To: Technical-Investor@ yahoogroups. com
Sent: Sun, 8 November, 2009 8:09:57 PM
Subject: Re: [Technical-Investor ] OOPS

 
Add these lines at the end of the afl ( as Buy and sell has already been defined in the afl)
 
Filter=Buy OR Sell ;
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar );
AddColumn(Close,"close" );
 
 
cheers



From: Chandrashekhar Bondre <cnbondre@yahoo. com>
To: Technical-Investor@ yahoogroups. com
Sent: Sun, November 8, 2009 7:53:39 PM
Subject: Re: [Technical-Investor ] OOPS

 
Respected Seniors,
 
Will somebody add and post EXPLORATION part in the attached afl by KARTHIK SIR'S, K-BRAIN afl.
 
//KBrain System Coded by Karthikmarar. Blog. www.stocktechnician .blogspot. com email. karthikmarar@ yahoo.com
//System based on the BrainTrend system in Metatrader
// The Turquiose colored Dot indicates start of a Up Trend
// The Magenta DOt indicates end of an Up move and beginning of a downmove
// The system is a Stop and reverse system
_SECTION_BEGIN( "KBrain") ;
//========== ========= =====Initiation= ========= ========= =====
SetBarsRequired( 1000000,0) ;
SetChartOptions( 0,chartShowArrow s|chartShowDates );
GraphXSpace = 15;
bts=ParamToggle( "BrainTrend1 signal","No| Yes" ,0);
btst=ParamToggle( "BrainTrend1 stop","No|Yes" ,0);
btsl=ParamToggle( "BrainTrend1 stop line","No|Yes" ,0);
period=Param( "Period", 14,6,20,1) ;
x1=53;
x2=47;
d=2.3;
f=7;
s=1.5;
range=ATR(f) ;
Range1 = ATR(f)/d;
Range2 = (ATR(f)*s)/4;
range3=ATR(10) ;
R = ((HHV(H,period) - C) /(HHV (H,period) -LLV (L,period))) *-100;
EMA1= EMA(R,Period) ;
EMA2= EMA(EMA1,5);
Difference= EMA1 - EMA2;
ZeroLagEMA= EMA1 + Difference;
value2=abs(ZeroLagE MA);

function PercentR( periods )
{
 return -100 * ( HHV( H, periods ) - C )/( HHV( H, periods ) - LLV( L, periods ) );
}

for( i = period+10; i < BarCount; i++ )
{
C[0]=0;
Value2[0]=0;
p[0]=0;
Plot1[0]=0;
Plot2[0]=0;
Val1=0;
Val2=0;
temp[0]=0;
Value3[0]=0;
tm[0]=0;
p1[i]=0;
bt1[0]=0;
bt2[0]=0;
r[0]=0;
bt1a[0]=0;
bt2a[0]=0;
istop[0]=Val1[ 0];
stop[i]=Val1[ 0];
bstop[0]=0;
sstop[i]=0;
//========== ========= ========= ======Indicators ========= ========= ========= =
{
if (value2[i] < x2 AND abs(Close[i] -Close[i- 2]) > range1[i])
 p[i] = 1 ;
else
{
if (value2[i] > x1 AND abs(Close[i] -Close[i- 2]) > Range1[i])
 p[i] = 2 ;
else
 p[i]=0;
}
}
if ((value2[i] < x2 AND p[i] == 1) OR (value2[i] < x2 AND p[i] == 0))
{
if (abs(Close[i] -Close[i- 2]) > Range1[i])
{
Plot1[i]=H[i] ;
Plot2[i]=L[i] ;
}
else
{
Plot1[i]=Plot1[ i-1];
Plot2[i]=Plot2[ i-1];
}
}
else
{
if ((value2[i] > x1 AND p[i] == 2) OR (value2[i] > x1 AND p[i] == 0))
         
{
Plot1[i]=L[i] ;
Plot2[i]=H[i] ;   
}
else
{
Plot1[i]=Plot1[ i-1];
Plot2[i]=Plot2[ i-1];
}
}
//========== ========KBrain Signal ============ ========= ========= ======
{
if (value2[i] < x2 AND (abs(Close[i] -Close[i- 2]) > Range1[i]))
{
if (p[i] == 1 OR p[i] == 0)
Value3[i]=L[ i]-range3[ i];
val1[i]=Value3[ i];
p[i]=1;
temp[i]=1;
}
else
{
temp[i]=temp[ i-1];
}
{
if (value2[i] > x1 AND (abs(Close[i] -Close[i- 2]) > Range1[i]))
{
if (p[i] == 2 OR p[i] == 0)
Value3[i]=H[ i]+range3[ i];
val2[i]=Value3[ i];
p[i]=2;
temp[i]=2;; 
}
}
}
{
if (temp[i]==1 AND Plot1[i]>0 AND tm[i] != 1)
 tm[i]= 1;
if (temp[i]==2 AND Plot2[i]>0 AND tm[i] != 2)
 tm[i]=2;
}
//========== ========= ========= ===stop== ========= ========= ========= ========= ==
{
if (value2[i] < x2 AND (abs(Close[i] -Close[i- 2]) > Range1[i])AND p[i] !=2)
   {
     value3[i]=L[ i]-range3[ i];
     va1[i]=Value3[ i];
     p1[i]=2;
     r[i]=Va1[i];
     bstop[i]=Va1[ i];
     bt2[i]=bt2[i- 1];
     }
     
if (value2[i] > x1 AND (abs(Close[i] -Close[i- 2]) > Range1[i])AND p[i] !=1)
  
     {
     Value3[i]=H[ i]+range3[ i];
     va2[i]=Value3[ i];
     p1[i]=1;
      
     r[i]=Va2[i];
     sstop[i]=Value3[ i];
     bt1[i]=bt1[i- 1];
     }
   
  }
 
if (val1[i] == 0 AND val2[i] == 0 AND p[i] == 0 )
         {
         bstop[i]=bstop[ i-1];
         sstop[i]=sstop[ i-1];
         }
    
if (bstop[i]<bstop[i-1] AND tm[i]==1 AND tm[i-1]==1) bstop[i]=bstop[ i-1];
if (sstop[i]>sstop[i-1] AND tm[i]==2 AND tm[i-1]==2) sstop[i]=sstop[ i-1];
 
}
//========== ========= ========= =SYSTEM== ========= ========= ========= =========
Mycolor=IIf( p==1,colorLime, IIf(p==2, colorRed, colorBlue) );
PlotOHLC( Open,  High,  Low,  Close, "", Mycolor, styleBar| styleThick   );
PlotShapes( shapeCircle* (bts AND tm==1 AND Ref(tm,-1)== 2),colorTurquois e, 0, bstop, 0 );
PlotShapes( shapeCircle* (bts AND tm==2 AND Ref(tm,-1)== 1), colorCustom12, 0, sstop, 0 );
PlotShapes( IIf(btst AND p==1,shapeSmallCirc le,Null), colorTurquoise, 0,bstop,0) ;
Plot(IIf(btsl AND tm==1,bstop, Null),"", colorPaleBlue, 1);
PlotShapes( IIf(btst AND p==2,shapeSmallCirc le,Null), colorCustom12, 0,sstop,0) ;
Plot(IIf(btsl AND tm==2,sstop, Null),"", colorLightYellow ,1);
Buy=Cover=(bts AND tm==1 AND Ref(tm,-1)== 2);
Sell=Short=( bts AND tm==2 AND Ref(tm,-1)== 1);
SellPrice=ValueWhen (Sell,C,1) ;
BuyPrice=ValueWhen( Buy,C,1);
Long=Flip(Buy, Sell);
Shrt=Flip(Sell, Buy );
_SECTION_END( );
//========== =======TITLE= ========= ========= ========= ========= ========= ========= ========= ========= ========= ========= =====
_SECTION_BEGIN( "Title");
if( Status("action" ) == actionIndicator )
(
Title = EncodeColor( colorWhite) + "KBrain V 1.0. " + " - " +  Name() + " - " + EncodeColor( colorRed) + Interval(2) + EncodeColor( colorWhite) +
 "  - " + Date() +" - "+"\n" +EncodeColor( colorYellow) +"Op-"+O+"  "+"Hi-"+H+"  "+"Lo-"+L+"  "+
"Cl-"+C+"  "+ "Vol= "+ WriteVal(V)+ "\n"+
EncodeColor( colorLime) +
WriteIf (Buy , " GO LONG / Reverse Signal at "+C+"  ","")+
WriteIf (Sell , " EXIT LONG / Reverse Signal at "+C+"  ","")+"\n"+EncodeCo lor(colorWhite) +
WriteIf(Sell , "Total Profit/Loss for the Last Trade Rs."+(C-BuyPrice) +"","")+
WriteIf(Buy  , "Total Profit/Loss for the Last trade Rs."+(SellPrice- C)+"","") +
WriteIf(Long AND NOT Buy, "Trade : Long - Entry price Rs."+(BuyPrice) ,"")+
WriteIf(shrt AND NOT Sell, "Trade : Short - Entry price Rs."+(SellPrice) ,"")+"\n" +
WriteIf(Long AND NOT Buy, "Current Profit/Loss Rs."+(C-BuyPrice) +"","")+
WriteIf(shrt AND NOT Sell, "Current Profit/Loss Rs."+(SellPrice- C)+"","") );
PlotShapes(IIf( Buy,shapeUpArrow , shapeNone),colorBri ghtGreen, 0,L, Offset=-75);
PlotShapes(IIf( Sell,shapeDownAr row,shapeNone) , colorYellow, 0,H, Offset=-75);
_SECTION_END( );
 
 
 "Experts" please help to add EXPLORATION part to the master piece afl.
 
Thanks  and regards,
 
CNB


From: sunil kini <sunil.kini@yahoo. co.in>
To: Technical-Investor@ yahoogroups. com
Sent: Sun, November 8, 2009 2:05:53 PM
Subject: Re: [Technical-Investor ] OOPS

 
Dear Prashant
  Please post AFL for the OOPS patttern scan.
 
Thank You


From: Abhijit <ap19632000@yahoo. com>
To: Technical-Investor@ yahoogroups. com
Sent: Sat, 7 November, 2009 12:26:19 PM
Subject: [Technical-Investor ] OOPS

 
In chart patterns, there is a not-so-well- known pattern called OOPS buy or OOPS sell.
 
I have spotted an OOPS buy in Suzlon, and it is a coincidence that this buy is on daily, weekly as well as MONTHLY charts.
 
I can safely say that as long as this month's low holds, this will be a multibagger in months to come.
 
I had last seen this pattern on L & T at its low in March this year near 600, and it has gone up 3 times in less than 9 months.
 
Will Suzlon do the same?
 
No harm in buying some with a stop loss of this months low - so far, that is 53.8.
 
I do not want to explain the pattern here - I gave a seacrh in google - 'chart pattern oops buy', and got  12,200 matches..please do your own search.
 
Chart attached.
 
Cheers,
 
AP
 
 
 


The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.




Keep up with people you care about with Yahoo! India Mail. Learn how.









The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.

__._,_.___
For Forum Rules of Conduct & Disclaimer, please go through

http://finance.groups.yahoo.com/group/Technical-Investor/files/!Forum Rules of Conduct.txt
.

__,_._,___

No comments: