Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom candlestick formula

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

    Custom candlestick formula

    How can i execute the following custom candlestick identification formula in ninjascript

    (O1>C1) AND (C-O)>=0.7*(H-L)AND (C>O1) AND (H-L)>=1.5*(AVGH10-AVGL10)AND (H1-L1).>=0.7(AVGH10-AVGL10) AND (O1-C1).=)0.7*(H1-L1)

    where O1 indicated open 1 bar ago and so on .

    #2
    Hello,

    Thank you for the question.

    This would require some manual programming, I will post the items below in which would be needed to complete this statement if you want to try this yourself. Otherwise this would need to be created using NinjaScript.

    The various syntax you would need for this would be located in the NinjaScript reference here: http://ninjatrader.com/support/helpG..._reference.htm

    This statement would require a few different items, for the values you would use such as the Open of 1 bars ago, that would be:

    Code:
    Open[1]
    The basic syntax for if statements can be located in the sample here: http://ninjatrader.com/support/helpGuides/nt7/close.htm

    To combine multiple items, you could use the && sign which would look like the following when used in an if statements:

    Code:
    if (Close[0] > Close[1] && Close[1] > Close[2])
    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    114 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    160 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    81 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    126 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    80 views
    0 likes
    Last Post PaulMohn  
    Working...
    X