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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alifarahani, Today, 09:40 AM
    4 responses
    20 views
    0 likes
    Last Post alifarahani  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PhillT, Today, 02:16 PM
    2 responses
    7 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Started by Kaledus, Today, 01:29 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frankthearm, Yesterday, 09:08 AM
    14 responses
    47 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X