Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

bool statement

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

  • NinjaTrader_CodyB
    replied
    Hello,
    In addition to what Koganam has asked, please advise the following:
    Can you provide exactly what you are trying to compare with your If statement?

    Leave a comment:


  • koganam
    replied
    Originally posted by imalil View Post
    I have a 3rd party indicator with locked code but gives us functions for us to make our own indicators and strategies.

    One such function looks like this: ThirdPartyInd.Test[barsAgo]. This paints the bar a certain color based on the value created in the 3rd party indicator. I do not have access to this value or code.

    What I want to do is put this function in an IF bool statement. Something like:

    if (CurrentBars[0] == ThirdPartyInd.Test[0]
    { DrawText(etc......)}

    This IF statement does not work, but I think you see what I'm trying to say.

    I'd appreciate any advice.
    Thank you.
    Try examining ThirdPartyInd.Test[0] with a Print() statement to the OutputWindow.

    What does: " This IF statement does not work" mean? What happens? Error message? When?

    Leave a comment:


  • imalil
    started a topic bool statement

    bool statement

    I have a 3rd party indicator with locked code but gives us functions for us to make our own indicators and strategies.

    One such function looks like this: ThirdPartyInd.Test[barsAgo]. This paints the bar a certain color based on the value created in the 3rd party indicator. I do not have access to this value or code.

    What I want to do is put this function in an IF bool statement. Something like:

    if (CurrentBars[0] == ThirdPartyInd.Test[0]
    { DrawText(etc......)}

    This IF statement does not work, but I think you see what I'm trying to say.

    I'd appreciate any advice.
    Thank you.

Latest Posts

Collapse

Topics Statistics Last Post
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
36 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
23 views
0 likes
Last Post PaulMohn  
Started by CarlTrading, 03-31-2026, 09:41 PM
1 response
162 views
1 like
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 04-01-2026, 02:41 AM
0 responses
96 views
1 like
Last Post CarlTrading  
Started by CaptainJack, 03-31-2026, 11:44 PM
0 responses
152 views
2 likes
Last Post CaptainJack  
Working...
X