Need Broader Space within Top and Bottom of Chart Window
Author: Rounder1
Creation Date: 6/12/2014 3:30 PM
profile picture

Rounder1

#1
How would one view/create more real estate within the top and bottom area of a chart window?

The stock name and description ribbon at the top of the chart window often obscures candlesticks when values reach the upper limit of the frame (bullish trend). Also, more chart real estate would be useful for drawing and viewing stop limits where resistance levels and converging trends are dynamically off scale and beyond the current "Y" axis boundary by barely a percentage grade.

To view this chart real estate for drawing symbols (head-shoulder or stop limits) requires compression of the timeline, but the chart detail then becomes too small to work with.

I've searched the forum and user manual, but can find no help for adjusting the "Y" axis for a better boundary work area.
profile picture

Eugene

#2
profile picture

Cone

#3
On a deficiency note, when using semi-log scale, the automatic scaling does not provide adequate headroom. It can be solved worked around with SetPaneMinMax() however.
profile picture

Rounder1

#4
The code for SetPaneMinMax would be most functional -- adding 10% of the highest value. But after compile, it throws system warnings and "bar" definition conflicts when used with CMO strategy. I've pasted the strategy below along with the SetPaneMinMax code.

Thanks...



CODE:
Please log in to see this code.
profile picture

Eugene

#5
Yes it conflicts - this is what one gets for a simple copy & paste act. To fix, you can:

1. either use a different variable name for your "bar" variable
CODE:
Please log in to see this code.

2. or turn the now conflicting 2nd definition into an assignment:
CODE:
Please log in to see this code.


Try to read the warnings that compiler is throwing at you, notice the line number, Google the error message to get more information from MSDN and other sources. Since this is programming 101 (not even C# specific), please consider starting by e.g. resources quoted in this FAQ: How do I start with C# ?
profile picture

Rounder1

#6
Thanks, Eugene,

Sigh... I'm out of my depth here, and I apologize. Fidelity suggested this program as an excellent tool for testing and charting 'out-of-the-box' strategies. It works more than well enough as is despite the lack of padded real estate at the top and bottom of the chart window.Tech support recommended I post the question here since the tech, himself, wasn't knowledgeable as a programmer/developer either. This squawk is a minor issue I can live with.
profile picture

Cone

#7
No problem Rounder1. If you need some help with code, you're at the right place. :)
profile picture

Eugene

#8
Got your point John. Simply change your code like that:

CODE:
Please log in to see this code.
profile picture

Rounder1

#9
Thanks, Eugene!

Worked perfectly.

If you find yourself pulling eight sustained G's, in full burner, with a bogie at your six lighting you up with a tracking solution for a high PK splash -- I'm your man. I'll get you out-of-there. I've hurled this body at better than twice the speed of sound and tortured it with countless multi-dimensional hard G tactics in a fighter sporting 138 computers with double-triple redundancy. But if I have to write code for any one of those things to save my life... Just line me up with a blindfold, a cigarette, and lets get it over with.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).