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

general question

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

    general question

    Hi guys,

    I try to distinguish up trend low trend and lateral movements , for do that i try to measure a body , but is not coherent, because i set a limit of candel body , if candelbody is <= at 0.14 then is lateral movement , but sometime inside lateral movement , have bar at 0.15 or 0.16, and in trend have the same problem but vice versa inside a trend i have some candel with little body , and i could consider like in trend , how is possible resolve this problem , exist some function , for simplify ? gimp

    Thanks
    Last edited by luigiabsh1972; 10-24-2020, 02:17 PM.

    #2
    Hello luigiabsh1972,

    Thank you for the post.

    There would not be a specific built in function for what you have described but you can likely solve the problem by using logic and testing. It sounds like you have a calculation already where some cases need to still be included to be a lateral movement. I could suggest using some Prints to identify when that happens to see if potentially increasing the range you set would be an option, for example changing for <= 0.14 to <= 0.16. That will depend on the calculation you made and if the value would also encompass other trends.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    7 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    159 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X