Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Read existing indicator values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Read existing indicator values

    Hello,

    I have a few indicators added to my chart. For example: RSI, Momentum, Bollinger and 2 custom indicators. If I want to read the value of each of these indicators, how would I access them from a C# based custom indicator (in the OnBarUpdate() method)?

    I am interested in retrieving the current value of each of the indicator for every single tick. Every single indicator is showing in the data box.

    Please help.

    Thanks

    #2
    Welcome to our forums - you can directly call the indicator method in your custom script, for example

    double upperValue = Bollinger(2, 20).Upper[0];

    will get you the Upper value of the 20 period 2 deviation Bollinger Bands.

    Similiar for your other studies including the custom indicators, if you want to process on each tick in realtime or replay, just run the calling study with CalculateOnBarClose set to false.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    161 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    309 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    349 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X