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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    72 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    44 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    30 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    61 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X