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 CarlTrading, Yesterday, 11:51 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, Yesterday, 11:48 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    24 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X