Rank: Member
Groups: Registered, Registered Users Joined: 9/11/2005(UTC) Posts: 16
|
This should be simple but I have not coded MS for 10 years and only coded explorations.
I am short sighted and want to sit back and go through charts one aat a time- SO: because the stock ticker displayed in the top and bottom bar is way too small for me to see I need an indicator(expert?) that will write each stock symbol for each chart on the chart in maybe 1" high letters e.g. AAPL in 1" high letters on the chart (maybe font that large not available but BIG FONT selectable).
A de luxe version would vary the positioning depending on where the bars were e.g. If stock gone up from bottom left top top right then locate symbol text Bottom right, if stock goes down from top left to bottom right then locate symbol text top right. i.e. does not get obscured by price chart bars is what I am really aiming for.
I realise I am 'on the scrounge' with this in asking someone to do my coding for me, but I have to re-learn MS and also chart indicators which I did little of - could take me days and someone on this forum 5 minutes........................ Hope you understand.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
The primitive MetaStock formula language doesn't facilitate writing custom values or data to the user interface; even using the MDK prohibits this. An alternative, and it will help your general computer use, is to customise your operating system to use a larger and/or more readable font in the Windows title bar.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 9/11/2005(UTC) Posts: 16
|
Great stuff Wabbit as you have saved me wasting time trying to find a way to do something that can't be done. Many thanks.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Originally Posted by: Mokwit This should be simple but I have not coded MS for 10 years and only coded explorations.
I am short sighted and want to sit back and go through charts one aat a time- SO: because the stock ticker displayed in the top and bottom bar is way too small for me to see I need an indicator(expert?) that will write each stock symbol for each chart on the chart in maybe 1" high letters e.g. AAPL in 1" high letters on the chart (maybe font that large not available but BIG FONT selectable).
A de luxe version would vary the positioning depending on where the bars were e.g. If stock gone up from bottom left top top right then locate symbol text Bottom right, if stock goes down from top left to bottom right then locate symbol text top right. i.e. does not get obscured by price chart bars is what I am really aiming for.
I realise I am 'on the scrounge' with this in asking someone to do my coding for me, but I have to re-learn MS and also chart indicators which I did little of - could take me days and someone on this forum 5 minutes........................ Hope you understand.
Via formula, you could use the Expert Commentary to display the symbol with a font/size of your choosing. In version 11 and prior, the "Menu" Font size through Windows (Inactive Menu on older versions of Windows) could also be used to control the Chart Title Bar size. Versions 12 and later the chart title bar size is fixed so it doesn't play as nice when you force the font size larger. But it is true that you cannot program text into a chart directly via custom indicator.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 9/11/2005(UTC) Posts: 16
|
I'm on P434 of Metastock user manual where it covers plotting values and text
As far as I can tell need to write a formula for expert commentary in Metastock code language that plots the symbol only plots the symbol once rather than above every bar showing the condition.
e.g. if in pseudo-code:
If C <> 0 then plot stock symbol once in one location only on chart in BIG Letters
Not sure of my syntax but need syntax for plotting symbol e.g in pseudo-code: 'Plot symbol' and also need to know how to ensure 'plot once' rather than above every bar that shows the condition.
If anybody is feeling (really) generous or can give me some pointers, would really be appreciated.
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Originally Posted by: Mokwit I'm on P434 of Metastock user manual where it covers plotting values and text
As far as I can tell need to write a formula for expert commentary in Metastock code language that plots the symbol only plots the symbol once rather than above every bar showing the condition.
e.g. if in pseudo-code:
If C <> 0 then plot stock symbol once in one location only on chart in BIG Letters
Not sure of my syntax but need syntax for plotting symbol e.g in pseudo-code: 'Plot symbol' and also need to know how to ensure 'plot once' rather than above every bar that shows the condition.
If anybody is feeling (really) generous or can give me some pointers, would really be appreciated.
Hi again, This is certainly a bit of a work-around and not an ideal way to resolve what you're looking to do. The expert commentary would be contained within it's own window. You can dock the window on the side/bottom/top of a chart, or you can resize the floating commentary window as small as possible and stick it in the upper left corner of your chart. Commentary is also limited to displaying for one chart at a time (the active chart) so would be less useful for a multi-chart setup. It would probably be most beneficial for scrolling through a watchlist of stocks.
The biggest issue I see with this is that the commentary window has a certain 'minimum' box size which may be more screen real estate than you're willing to give it. As for the actual code, you could simply put the following into a New Expert Commentary formula to see how it works: <symbol> You'll notice typical Font type controls at the top of the dialogue, and you can highlight the above text after you paste it and play with the size and font type.
Edited by user 8 years ago
| Reason: Not specified
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.