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 Tim-c, Today, 03:54 AM
    0 responses
    3 views
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by FrancisMorro, Today, 03:24 AM
    0 responses
    2 views
    0 likes
    Last Post FrancisMorro  
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,772 views
    0 likes
    Last Post Leafcutter  
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    31 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    945 views
    0 likes
    Last Post spwizard  
    Working...
    X