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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X