Traderji.com - Discussion forum for Stocks Commodities & Forex

two range axis one chart

Discuss two range axis one chart at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; hi , i'm trying to plot a chart that consists of closing price ema and ...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 25th March 2007, 02:47 AM
Member
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
kernel is on a distinguished road
Reputation: 20
Default two range axis one chart

hi ,

i'm trying to plot a chart that consists of closing price ema and the diff between them it works fine but obviously it's useless because i can't realy see the diff it's very low and allmost looks like a straight line , is there a way to have two range axis in one chart ?
thanks .
attached is the afl :

_SECTION_BEGIN("MAIN");
Plot(Close,"Close",colorBlack,styleLine );

P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

diff = Close - EMA (Close,Periods) ;
Plot(diff,"",colorYellow,styleLine );
_SECTION_END();
Reply With Quote
Sponsored Links
  #2  
Old 25th March 2007, 11:30 AM
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: two range axis one chart

Quote:
Originally Posted by kernel View Post
hi ,

i'm trying to plot a chart that consists of closing price ema and the diff between them it works fine but obviously it's useless because i can't realy see the diff it's very low and allmost looks like a straight line , is there a way to have two range axis in one chart ?
thanks .
attached is the afl :
Hi,

Plot the 'diff', ie C - EMA, on its own scale. So that it takes its own axis. Just add styleOwnScale while plotting the 'diff'.

Below is the updated code:
Quote:
_SECTION_BEGIN("MAIN");
Plot(Close,"Close",colorBlack,styleLine );

P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

diff = Close - EMA (Close,Periods) ;
Plot(diff,"",colorYellow,styleLine | styleOwnScale );
_SECTION_END();
Also I've attached the screenshot of what it looks like. Let us know if you are looking for something else.

Praveen.
Attached Images
File Type: png Main_Screenshot.png (10.8 KB, 36 views)
Reply With Quote
  #3  
Old 25th March 2007, 12:06 PM
Member
 
Join Date: Nov 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
kernel is on a distinguished road
Reputation: 20
Default Re: two range axis one chart

thnaks it works ,
it plots the diff now god but the left axis does not display the range of it , is there a way to do it ? i tried styleleftaxis but no change
and is there a book explaining alf with code examples ?
Reply With Quote
  #4  
Old 26th March 2007, 09:01 AM
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: two range axis one chart

Quote:
Originally Posted by kernel View Post
thnaks it works ,
it plots the diff now god but the left axis does not display the range of it , is there a way to do it ? i tried styleleftaxis but no change
...
I tried here. But I couldn't find any solution. It will show the diff value at the right axis. May be others can help.

Quote:
and is there a book explaining alf with code examples ?
My oft repeated answer : Amibroker User Guide. Best book for AFL.

Praveen.
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: two range axis one chart
Thread Thread Starter Forum Replies Last Post
Mid range rule sanefellow_213 Equities 3 6th September 2007 07:47 PM
chart of the day masterstrokes Trading on Technicals 50 15th December 2006 09:40 AM
Mkt range-bound in mid-day trade Robbie Current Affairs 0 27th October 2006 04:30 PM
Range Bound stocks ronald_peterson Equities 3 26th April 2006 11:59 AM
What is Average True Range? SGM Technical Analysis 5 19th February 2006 07:16 PM


All times are GMT +5.5. The time now is 09:38 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