Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DEMA cross

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

    DEMA cross

    I am trying to code a strategy that will buy or sell if the new candle broke the support or resistance of the previous candle. Any idea on where I can start with this?

    Thank You.
    Last edited by eberline; 04-08-2015, 12:45 AM. Reason: support and resistance makes more sense

    #2
    Hello eberline,

    Thank you for your post.

    Are you going to be calculating these Support and Resistance lines yourself or using another indicator for this?

    You would essentially, reference the previous values of the indicator as such -
    if(Close[0] > Support[1])

    This syntax translates to "If the current close is greater than the support of the previous bar"

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    12 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Working...
    X