Click here to Login

                                                   Margin @ top of chart


Jim Harrison
2014-06-02 02:32:04

How do I add a static margin of x*ticksize to the top of the screen.

When price makes new highs/lows in real time, I need more space at the top, especially when the chart is not maximized.

plot(close+(ticksize()*2),"",colorTransparent,chartline); does the trick, just did.nt know how that margin is set internally.


2014-06-02 07:57:01


Best Answer

Jim Harrison
2014-06-02 11:10:06


I knew there was something I had seen. Thanks!

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Chart Patterns: Double Top and Double Bottom
Drawdown and Rate of Return On Your Chart
Watchlists on Your Chart
Updating Margin Factor During Drawdown
Enhanced Candlestick Chart with Volume Variation

How-to Lessons
How to display two stocks on the same chart
How to add a trading indicator to a chart
How to download new quotes when selecting a chart
How to display the bar index of a stock on a chart
How to scale and move the chart Y-axis

Related Forum Threads
Information line at top of chart
chart top/bottom margin
Chart Pattern Index problem
TO SHARE: Candlestick chart with a few interesting features
Top gainers for the day

Blog Posts
Compare Multiple Securities in a Single Chart
Compare stocks and securities by creating a relative performance ...
How to Calculate and Display the Bid/Ask Spread on a Chart
Update Chart Layout based on Active Time Frame
Update Chart Layout based on Active Ticker Symbol - Part 2

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2021
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.