Shows mouse pointed bar's OHLCV on text data on top of chart

Questions about MultiCharts and user contributed studies.
klkwan
Posts: 18
Joined: 10 Nov 2011

Shows mouse pointed bar's OHLCV on text data on top of chart

Postby klkwan » 26 Apr 2012

Hello, Folks

Does it possbile to write any code can same as enable 'Tracking Mode' on Status Line function, once I move the mouse pointer onto the specified bar, then shows that date's Close price & EMA in 5 days onto my text data message on top of chart?

I only can do to show the current bar text data... Sorry about my new b... :(

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Shows mouse pointed bar's OHLCV on text data on top of c

Postby Henry MultiСharts » 26 Apr 2012

Hello, Folks
Does it possbile to write any code can same as enable 'Tracking Mode' on Status Line function, once I move the mouse pointer onto the specified bar, then shows that date's Close price & EMA in 5 days onto my text data message on top of chart?
I only can do to show the current bar text data... Sorry about my new b... :(
Do you need to see the summ of the last 5 days close price and EMA values?

klkwan
Posts: 18
Joined: 10 Nov 2011

Re: Shows mouse pointed bar's OHLCV on text data on top of c

Postby klkwan » 26 Apr 2012

I want to just view the specified day's close price and EMA values which count & calculate from I move the mouse pointer onto the specified bar, and the text data will auto change to show that values.

I just can achieve to shows the current bar's close price & EMA value onto text data box. But I have no idea that similar as 'Tracking Mode' on Status Line function that move the mouse pointer and view that bar's OHLCV etc...

Does it can be code like as this?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Shows mouse pointed bar's OHLCV on text data on top of c

Postby TJ » 26 Apr 2012

I want to just view the specified day's close price and EMA values which count & calculate from I move the mouse pointer onto the specified bar, and the text data will auto change to show that values.

I just can achieve to shows the current bar's close price & EMA value onto text data box. But I have no idea that similar as 'Tracking Mode' on Status Line function that move the mouse pointer and view that bar's OHLCV etc...

Does it can be code like as this?
Any numeric analysis, if you can imagine it, it can be coded.

You can start by writing out your thoughts in a step-by-steps process -- think what would the computer has to go through to arrive at YOUR desired number.


Hint: what you have written above is a concept, what you need is a process.

klkwan
Posts: 18
Joined: 10 Nov 2011

Re: Shows mouse pointed bar's OHLCV on text data on top of c

Postby klkwan » 26 Apr 2012

Thanks TJ advise. I think I can use the loop on bar count, then the values of each bar can be calculated. But any function code which can refer when I move the mouse pointer and then make my text data will refer that specified bar & access that values? Could you give me more hint? Much thanks! :D

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Shows mouse pointed bar's OHLCV on text data on top of c

Postby TJ » 26 Apr 2012

Thanks TJ advise. I think I can use the loop on bar count, then the values of each bar can be calculated. But any function code which can refer when I move the mouse pointer and then make my text data will refer that specified bar & access that values? Could you give me more hint? Much thanks! :D
Diagrams would help to illustrate your idea.
Diagrams give you clarity in thoughts and logic.
(you might need more than one diagram if the process is dynamic)

You can point out your critical junctures on the chart,
You can write notes on the chart to explain the process,
Where is the beginning of the process...
where is the end of the process?
How do you initiate the process?
A mouse click?
Where?
How?
What kind of process do you have in mind?
Adding up some numbers?
What are those numbers?
What should the value of those numbers be at each critical point?
Use lines and arrows on the diagram to specify the critical points.

If you can articulate those points, you are on your way to programming it.

klkwan
Posts: 18
Joined: 10 Nov 2011

Re: Shows mouse pointed bar's OHLCV on text data on top of c

Postby klkwan » 26 Apr 2012

Hi, TJ
Get it. Thanks for your advise. I will try my best to achieve it. :)

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Shows mouse pointed bar's OHLCV on text data on top of c

Postby Henry MultiСharts » 27 Apr 2012

Another way to plot a custom calculation results or comments when user clicks on a particular bar is "Expert Commentary" feature added in MultiCharts 8.0 beta 2.
Reserver words for Expert Commentary Category.


Return to “MultiCharts”