Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compare price level with last cross-over

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

    Compare price level with last cross-over

    I want to write a strategy that whenever a stoch crossover (2 %D lines) occurs it will compare the last crossover price level with current crossover price.

    Example: Go long if current stoch crossover price level above the last crossover price level.

    Can anyone share their expertise? Thanks in advance.

    #2
    Hello,

    Your best bet is probably to store them in a DataSeries, then refer back to them using indexing and maybe a "for" loop. This link my help:
    http://www.ninjatrader-support.com/H...iesObject.html
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sinpeople, Today, 04:38 AM
    0 responses
    10 views
    0 likes
    Last Post sinpeople  
    Started by Futurestrader00, Yesterday, 06:14 PM
    1 response
    17 views
    0 likes
    Last Post cincai
    by cincai
     
    Started by ballston, Today, 06:32 AM
    0 responses
    4 views
    0 likes
    Last Post ballston  
    Started by Danila, Today, 04:38 AM
    2 responses
    7 views
    0 likes
    Last Post Danila
    by Danila
     
    Started by kiffgj, Today, 04:23 AM
    0 responses
    8 views
    0 likes
    Last Post kiffgj
    by kiffgj
     
    Working...
    X