Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 nightstalker, Today, 01:32 PM
1 response
5 views
0 likes
Last Post NinjaTrader_Zachary  
Started by kevinenergy, Yesterday, 12:01 PM
7 responses
23 views
0 likes
Last Post nightstalker  
Started by DawnTreader, 05-08-2024, 05:58 PM
15 responses
49 views
0 likes
Last Post NinjaTrader_Gaby  
Started by ZeroKuhl, Yesterday, 04:31 PM
7 responses
40 views
0 likes
Last Post NinjaTrader_Jesse  
Started by xepher101, Today, 12:19 PM
1 response
24 views
0 likes
Last Post NinjaTrader_Jesse  
Working...
X