Metastock indicator values

rahul100

Junior member
Messages
39
Likes
0
Hi

Is it possible to get the numerical value of an indicator (last) within a window, rather than the graph of the indicator?

Thanks
 
Hi

Is it possible to get the numerical value of an indicator (last) within a window, rather than the graph of the indicator?

Thanks

@rahul,

moving the mouse over the indicator graph you see all referencing indicator values (not only the last).

If you you want to display such a value specially in a commentary window you have to write an Expert and use the built-in MSFL function writeVal().

bye,
zentrader
 
Hi

Any further info on this?

I basically have a inner window with an indicator which has values of 1, 0, or -1. On a 1 min chart.

I would like the last value in a a window, which I can then paste to excel using ole

As my current method of copy and special paste takes all values and I just need the last one
 
Hi

Any further info on this?

I basically have a inner window with an indicator which has values of 1, 0, or -1. On a 1 min chart.

I would like the last value in a a window, which I can then paste to excel using ole

As my current method of copy and special paste takes all values and I just need the last one

Hi rahul100,

my proposal:

1. create an new expert
2. in the commentary tab of the expert write your indicator formula using writeVal() function
3. attach this expert to your indicator window

I've attached two screenshots:

a) the expert commentary - in your case (if you need only the value of the indicator) cancel the text "indicator value", change the formula with your indicator so you get only the pure value in the window

b) a chart and indicator sample with attached expert commentary - the thick black down arrow shows the last indicator value. You can move dynamically between the indicator values using left/right keys. A right mouse click on the refresh button of the commentary window opens a menu, so you can copy the content of the commentary window (in your case only the actual indicator value) and you can paste them directly in Excel etc ...

Try it. It's easy to implement and does the job.

bye,
zentrader
 

Attachments

  • ms_chart_with attachedExpert.gif
    ms_chart_with attachedExpert.gif
    12.4 KB · Views: 571
  • ms_sampleExpert.gif
    ms_sampleExpert.gif
    16 KB · Views: 536
Top