Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Extracting value out of custom indicator

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

    Extracting value out of custom indicator

    Hello, I had a quick question about the best way to get a value of an indicator when building a strategy. For example, lets assume the following is my custom indicator

    Custom Indicator A
    Code:
    bool goLong
    if(Close[0] > Close[1]) goLong = true
    else goLong=false
    Custom Strategy Builder B

    Here I want to get the value of goLong from Indicator A.

    Currently what I'm doing is putting the goLong variable into an iseries and then have the strategy just pull the value every bar. I was just unsure if there is a more efficient way of doing this.

    Thank you!




    #2
    Hello jaboo,

    Thank you for the post.

    With the strategy builder using a Plot would be the best way to expose that data for the strategy. Strategy builder strategies have no other option for accessing indicator properties so a plot would be the only way to expose it correctly for that use case. In a manually coded strategy there are other options however using a series is also generally the most efficient way to expose data.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    173 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    90 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    129 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    208 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    186 views
    0 likes
    Last Post CarlTrading  
    Working...
    X