Traderji.com - Discussion forum for Stocks Commodities & Forex

Plot Buy/Sell signals on chart

Discuss Plot Buy/Sell signals on chart at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Hello! I am a novice to Amibroker and using it for last few days. As ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > AmiBroker

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 14th April 2007, 07:01 PM
Member
 
Join Date: Jun 2005
Location: NOIDA
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
mbsingh is on a distinguished road
Reputation: 20
Lightbulb Plot Buy/Sell signals on chart

Hello!

I am a novice to Amibroker and using it for last few days. As of now I am using metastock and I understand that only. I have learnt that Amibroker is much better software and I have got the feel in last few days.

What I don’t understand is about plotting an indicator/oscillator on the chart that can generate on screen signals in the shape of an arrow when price breakout of a moving average or a trend line etc.

I have seen a video http://www.amibroker.net/video/backtest.html and after back testing an AFL one has to command the program to display buy sell signals. I would like to know if it’s possible to display these arrows when a condition triggers on a continuous basis using a real time data?

I would request master users of the amibroker to suggest me the easiest way to the trick.

I would appreciate your efforts.

Regards,

MB Singh
Reply With Quote
Sponsored Links
  #2  
Old 14th April 2007, 07:32 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: Plot Buy/Sell signals on chart

Quote:
Originally Posted by mbsingh View Post
Hello!

I am a novice to Amibroker and using it for last few days. As of now I am using metastock and I understand that only. I have learnt that Amibroker is much better software and I have got the feel in last few days.

What I don’t understand is about plotting an indicator/oscillator on the chart that can generate on screen signals in the shape of an arrow when price breakout of a moving average or a trend line etc.

I have seen a video http://www.amibroker.net/video/backtest.html and after back testing an AFL one has to command the program to display buy sell signals. I would like to know if it’s possible to display these arrows when a condition triggers on a continuous basis using a real time data?

I would request master users of the amibroker to suggest me the easiest way to the trick.

I would appreciate your efforts.

Regards,

MB Singh
Hello,

This AFL of Karthikmarar is an ideal one with all the required properties. It has got what you are looking for. I've highlighted it for your easy reference.

Praveen.

Code:
_SECTION_BEGIN("MABIUTS");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));

Buy=EMA(C,13)>EMA(EMA(C,13),9) AND  Cross (C,Peak(C,5,1));
Sell=Cross (EMA(EMA(C,13),9),EMA(C,13));
MYcolor = IIf( EMA(C,13)>EMA(EMA(C,13),9) AND  C>Peak(C,2,1), colorGreen, IIf(EMA(C,13)>EMA(EMA(C,13),9) AND C<Peak(C,2,1),colorBlue, colorOrange ));

PlotOHLC( Open,  High,  Low,  Close, "", Mycolor, styleBar   ); 

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ),0, IIf( Buy, Low, High ) );

GraphXSpace = 5;
dist = 1.5*ATR(10); 

for( i = 0; i < BarCount; i++ ) 
{ 
if( Buy[i] ) PlotText( "Buy\n@" + C[ i ], i, L[ i ]-dist[i], colorGreen ); 
if( Sell[i] ) PlotText( "Sell\n@" + C[ i ], i, H[ i ]+dist[i], colorRed); 
}
Reply With Quote
  #3  
Old 14th April 2007, 08:34 PM
Member
 
Join Date: Jun 2005
Location: NOIDA
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
mbsingh is on a distinguished road
Reputation: 20
Default Re: Plot Buy/Sell signals on chart

Dear Praveen!

Thanks a million for instant response. I have just placed the AFL on the chart and the arrows were visible. Now I will take it further and experiment. My purpose is to choose Amibroker is that playing with indicators is probably easy and one can device custom indicators and keep experimenting till you find the right one, like one can play with moving averages and they dont work the same way on each stock as every stock has its own personality and need different treatment. Same way as an individual has different nature and should be handled accordingly.

Similarly I suppose that every indicator for a stock must have its own set of parameters otherwise it would not provide the result one may see in any other stock.

though the AFL you sent served the purpose very well but for the reason I just mentioned it provided the completely wrong output and if some one would have traded on them, must have lost on both the occasions.

My purpose is not to demean anyone by writing this but just wanted to suggest another way that once basic setups using patterns known in TA are visible like in the attached HCL Tech realtime 15 Min chart are visible one must ignore any other signals. See the chart and you would notice that an inverted H&S breakout provided first buying opportunity and later a flag breakout provided another one.
regards,


M.B. Singh
www.technicaltradersofindia.com
Attached Images
File Type: png hcltech 15M realtime.png (30.6 KB, 243 views)
Reply With Quote
  #4  
Old 14th April 2007, 09:17 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: Plot Buy/Sell signals on chart

Quote:
Originally Posted by mbsingh View Post
Dear Praveen!

Thanks a million for instant response. I have just placed the AFL on the chart and the arrows were visible.

....
....

though the AFL you sent served the purpose very well but for the reason I just mentioned it provided the completely wrong output and if some one would have traded on them, must have lost on both the occasions.
Hi,

I posted that AFL to show you the real time application of plotting buy/sell arrows, which was what you'd asked.

Of course there are many types of trading - Pattern trading, indicator trading, etc.

There are lots of dedicated threads that deals with the above types of trading.

As a matter of fact, the AFL which was posted earlier is getting discussed in depth in Karthikmarar's thread - Experiments in TA.

Praveen.
Reply With Quote
  #5  
Old 19th April 2007, 03:30 PM
Member
 
Join Date: Mar 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
vijbala is on a distinguished road
Reputation: 20
Default Re: Plot Buy/Sell signals on chart

Mr praveen,
Pls tell me how to use your programme to get buy-sell signal in Amibroker charts. I am not a technical person
Thank you
Reply With Quote
  #6  
Old 14th May 2007, 03:16 AM
a1d a1d is offline
Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
a1d is on a distinguished road
Reputation: 20
Default Re: Plot Buy/Sell signals on chart

Thanks it is great ....
Reply With Quote
  #7  
Old 29th May 2007, 11:34 PM
Member
 
Join Date: Jul 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
savio is on a distinguished road
Reputation: 20
Default Re: Plot Buy/Sell signals on chart

Quote:
Originally Posted by vijbala View Post
Mr praveen,
Pls tell me how to use your programme to get buy-sell signal in Amibroker charts. I am not a technical person
Thank you


What is your rule for buy/sell, I will help you with
Reply With Quote
  #8  
Old 30th May 2007, 04:13 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: Plot Buy/Sell signals on chart

Quote:
Originally Posted by vijbala View Post
Mr praveen,
Pls tell me how to use your programme to get buy-sell signal in Amibroker charts. I am not a technical person
Thank you
Hi,

Extremely sorry for the late reply. Didn't notice your post.

Which program are you referring?

The AFL posted belongs to this forum member, Karthikmarar.

Are you asking about Amibroker? If so please refer to the posted code, or even better refer Amibroker User Guide.

Praveen.
Reply With Quote
  #9  
Old 22nd June 2007, 03:57 PM
Member
 
Join Date: Apr 2007
Posts: 709
Thanks: 87
Thanked 98 Times in 44 Posts
chintan786 will become famous soon enoughchintan786 will become famous soon enough
Reputation: 127
Default Re: Plot Buy/Sell signals on chart

Quote:
Originally Posted by bvpraveen View Post
Hi,

Extremely sorry for the late reply. Didn't notice your post.

Which program are you referring?

The AFL posted belongs to this forum member, Karthikmarar.

Are you asking about Amibroker? If so please refer to the posted code, or even better refer Amibroker User Guide.

Praveen.
Hi praveen, from last 2 days I am trying to write buy on Up Green arrow and Sell on Red Arrow.

But not getting desired results.

Buy signal not come exactly at same point. It is always come one or day ahead.

What I do?

Can u plz me out.

thanks in advance

Last edited by chintan786; 2nd July 2008 at 11:39 PM.
Reply With Quote
  #10  
Old 22nd June 2007, 04:36 PM
Moderator
 
Join Date: Nov 2005
Posts: 10,216
Thanks: 1,000
Thanked 1,934 Times in 768 Posts
uasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond reputeuasish has a reputation beyond repute
Reputation: 2006
Default Re: Plot Buy/Sell signals on chart

Quote:
Originally Posted by mbsingh View Post
Dear Praveen!

Thanks a million for instant response. I have just placed the AFL on the chart and the arrows were visible. Now I will take it further and experiment. My purpose is to choose Amibroker is that playing with indicators is probably easy and one can device custom indicators and keep experimenting till you find the right one, like one can play with moving averages and they dont work the same way on each stock as every stock has its own personality and need different treatment. Same way as an individual has different nature and should be handled accordingly.

Similarly I suppose that every indicator for a stock must have its own set of parameters otherwise it would not provide the result one may see in any other stock.

though the AFL you sent served the purpose very well but for the reason I just mentioned it provided the completely wrong output and if some one would have traded on them, must have lost on both the occasions.

My purpose is not to demean anyone by writing this but just wanted to suggest another way that once basic setups using patterns known in TA are visible like in the attached HCL Tech realtime 15 Min chart are visible one must ignore any other signals. See the chart and you would notice that an inverted H&S breakout provided first buying opportunity and later a flag breakout provided another one.
regards,


M.B. Singh
www.technicaltradersofindia.com
M B Singh,
In your intraday chart of (13th April) of HCL Tech you have mentioned Kartick's Mabiuts is giving wrong signals.From my attached chart of EOD you will find in fact his Mabiuts has given Buy signal.May be for Intraday he might suggest a change,but it is perfectly OK in EOD.
Asish

Last edited by uasish; 10th August 2008 at 11:47 PM.
Reply With Quote
Sponsored Links

Reply

Bookmarks


Advertise Here


Thread Tools

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 Off
Refbacks are Off

Similar Threads for: Plot Buy/Sell signals on chart
Thread Thread Starter Forum Replies Last Post
Confused About Candle Stick Signals.. VICKY_SEEKINGINR Technical Analysis 2 16th September 2007 08:53 AM
free buy ,sell signals ,wht leverage? winstonn Forex 0 1st December 2006 09:10 AM
How to plot MA of scrip vs Sensex? pasha AmiBroker 7 8th November 2006 10:47 PM
How to plot trailing & rolling pe chart bond008 Software 0 30th August 2005 06:29 PM


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

Indemnity, Disclaimer & Disclosure Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum Rules Disclaimer & Disclosure and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com