indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Technical > Indicators & Systems

Indicators & Systems Compendium of Code

FXPrimus
Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 17-02-2014, 11:45 PM
rinku0077 rinku0077 is offline
Newbie
 
Join Date: Feb 2014
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
rinku0077 is on a distinguished road
Default hello is there anyone who can help me to modify this AFl please

i got this AFl from ami broker library site and i like this AFL very much and its help me lots.. now is there anybody please help me to solve this Afl to modify something...what i actually need all i describe in this jpg picture which i attached here and i know this is very easy to solve for you who know coding.

Regards

Rinku

_SECTION_BEGIN("Williams %R with 9 period signal line");
//------------------------------------------------------------------------------
//
// Formula Name: Williams %R with 9 period signal line
// Author/Uploader: Anthony Faragasso
// E-mail: ajf1111@epix.net
// Date/Time Added: 2001-11-11 07:31:44
// Origin:
// Keywords:
// Level: basic
// Flags: indicator
// Formula URL: http://www.amibroker.com/library/formula.php?id=133
// Details URL: http://www.amibroker.com/library/detail.php?id=133


/* Williams %R and 9 day Mov.avg.*/
/* by Anthony Faragasso */
MaxGraph =10;

tr=Param("tr",9,1,60,1);

R = ((HHV(H,tr) - C) /(HHV (H,tr) -LLV (L,tr))) *-100;
Graph0 = r;
Graph1 =-30;
Graph2 =-70;
Graph3 =-90;
Graph4 =-10;
Graph5=MA(R , 9);
Graph5Style = 1+4;
Graph5Color =7;
Graph0Style=1+4;
Graph1Style =Graph2Style= 1;
Graph3Style =Graph4Style =4;
Graph3Color = Graph4Color =6;
Graph2Color = Graph1Color =10;




Plot(-40,"",colorGreen,styleLine);
Buy= R>-30 ;
Sell= R<-40 ;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy);
PlotShapes( shapeUpArrow*Buy , colorGreen ,0);
PlotShapes( shapeDownArrow*Sell , colorWhite ,0);
/*x = BarsSince( Cross( r, MA( r, 9)));*/
/*y = BarsSince( Cross( MA(r, 9), r));*/
/*Graph8 = ( x == 0 OR y == 0 ) * 30;*/

Title =Name() + " -Williams %R: " +" % R Line " +"("+ WriteVal ( Graph0,format=1.2)+")"+ " Signal Line " + ""+"("+WriteVal(Graph5,format=1.2)+")" +" , " + Date( );
_SECTION_END();

the image link is here: http://imageshack.com/a/img833/5923/4yxk.png
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 18-02-2014, 08:07 AM
Nemo's Avatar
Nemo Nemo is offline
indiTraders VIP
 
Join Date: Mar 2009
Posts: 4,043
Thanks: 3,348
Thanked 4,711 Times in 2,568 Posts
Nemo has a reputation beyond repute
Nemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond reputeNemo has a reputation beyond repute
Default

cs sudhrega nahi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to Nemo For This Useful Post:
  #3 (permalink)  
Old 18-02-2014, 09:44 AM
JJ's Avatar
JJ JJ is offline
.
 
Join Date: Mar 2009
Posts: 6,996
Thanks: 20,046
Thanked 28,255 Times in 6,720 Posts
JJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond repute
JJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond reputeJJ has a reputation beyond repute
Default

It would be easier if the conditions are in more formulaic language, sorting both the logic and the coding is too time consuming.
__________________
In a fight between you and the markets, back the markets.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to JJ For This Useful Post:
  #4 (permalink)  
Old 18-02-2014, 10:31 AM
nTP's Avatar
nTP nTP is offline
Flash Crash
 
Join Date: Dec 2013
Location: kolkata
Posts: 2,126
Thanks: 7,967
Thanked 2,389 Times in 1,418 Posts
nTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud of
Default

Quote:

the image link is here: http://imageshack.com/a/img833/5923/4yxk.png

Image doesn't open in my end.
__________________
thx
nTuple

Disclaimer: I am not a Research Analyst and not registered with any regulating authority. All posts are for educational purpose only.

Consider us a dumb -dumble guy in this analysis, any type of real time example will be quick-learn approach.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 19-02-2014, 10:51 PM
rinku0077 rinku0077 is offline
Newbie
 
Join Date: Feb 2014
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
rinku0077 is on a distinguished road
Default

Originally Posted by JJ View Post
It would be easier if the conditions are in more formulaic language, sorting both the logic and the coding is too time consuming.

hello jj thanks for reply but actually i don't have any idea about coding...would you please help me to modify this afl for me.

Regards

Rinku

Last edited by rinku0077; 20-02-2014 at 08:38 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 19-02-2014, 10:56 PM
rinku0077 rinku0077 is offline
Newbie
 
Join Date: Feb 2014
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
rinku0077 is on a distinguished road
Default

Originally Posted by n-tuple View Post
Image doesn't open in my end.

hi n-tuple thanks for reply please try again ...you can see the image this links :http://imageshack.com/a/img833/5923/4yxk.png
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 20-02-2014, 02:01 PM
Trademaniac's Avatar
Trademaniac Trademaniac is offline
Regulars
 
Join Date: Nov 2013
Posts: 170
Thanks: 140
Thanked 311 Times in 133 Posts
Trademaniac has a spectacular aura aboutTrademaniac has a spectacular aura aboutTrademaniac has a spectacular aura aboutTrademaniac has a spectacular aura aboutTrademaniac has a spectacular aura about
Default

Provide the algorithm CS
__________________
Stronger the WHY, easier the HOW
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 20-02-2014, 02:36 PM
nTP's Avatar
nTP nTP is offline
Flash Crash
 
Join Date: Dec 2013
Location: kolkata
Posts: 2,126
Thanks: 7,967
Thanked 2,389 Times in 1,418 Posts
nTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud of
Default

hi

How about removing ExRem () part ; It''s a oscillator between -100 to -10/0 i guess. i think normal cross() will give better result. rather than R> -30 or R < -40 i guess.
and changing MA to EMA(5) might be better.
thx.
__________________
thx
nTuple

Disclaimer: I am not a Research Analyst and not registered with any regulating authority. All posts are for educational purpose only.

Consider us a dumb -dumble guy in this analysis, any type of real time example will be quick-learn approach.

Last edited by nTP; 20-02-2014 at 10:46 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 21-02-2014, 10:06 AM
rinku0077 rinku0077 is offline
Newbie
 
Join Date: Feb 2014
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
rinku0077 is on a distinguished road
Default

Originally Posted by n-tuple View Post
hi

How about removing ExRem () part ; It''s a oscillator between -100 to -10/0 i guess. i think normal cross() will give better result. rather than R> -30 or R < -40 i guess.
and changing MA to EMA(5) might be better.
thx.

hi i don't know anything about programming and coding ....please help to modify

Regards

Rinku
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 22-02-2014, 08:40 PM
nTP's Avatar
nTP nTP is offline
Flash Crash
 
Join Date: Dec 2013
Location: kolkata
Posts: 2,126
Thanks: 7,967
Thanked 2,389 Times in 1,418 Posts
nTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud ofnTP has much to be proud of
Default

hi

w %R won't work in real market.
long back i used it by tremendous enthusiastic of a chaye wala.wait for some happy sole to help you.Till then use market profile or anything you like most coded here in ami section.

thx
n-t
__________________
thx
nTuple

Disclaimer: I am not a Research Analyst and not registered with any regulating authority. All posts are for educational purpose only.

Consider us a dumb -dumble guy in this analysis, any type of real time example will be quick-learn approach.

Last edited by nTP; 22-02-2014 at 10:42 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

indiTraders - Forum for the Active Indian Trader > Technical > Indicators & Systems


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


FXPrimus

All times are GMT +5.5. The time now is 01:39 PM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2