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 fredrikn, 05-08-2019, 04:01 AM
    57 responses
    4,391 views
    2 likes
    Last Post Momentum  
    Started by Blairski, Yesterday, 09:19 AM
    2 responses
    11 views
    0 likes
    Last Post Blairski  
    Started by tonynt, Today, 09:33 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by minotti1, Today, 08:31 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by SmartArtsStudio, 05-15-2021, 10:46 AM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X