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 pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    148 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,283 views
    0 likes
    Last Post Leafcutter  
    Working...
    X