• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get the highest when the Stochastic is below 40

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

    Get the highest when the Stochastic is below 40

    Hello,

    I have a problem when trying to get the highest when the Stochastic is below 40. My idea is that when there is a crossabove the Stochastic (level 40) and the price is higher than it was when it was below 40 then buy.


    But something is wrong with the code and it doesn't do what I would like. I attach a screenshot with the problem and a word document with the code

    Thanks

    Daniel
    Attached Files

    #2
    Hello,

    The code is referencing Stochastics(14, 10, 3), however your chart is set to Stochastics(1, 10, 1)

    Which setting are you wishing to use?
    MatthewNinjaTrader Product Management

    Comment


      #3
      In the backtest I am using the Stochastics(1, 10, 1)

      Thanks

      Daniel

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rontronimous, Today, 05:55 PM
      0 responses
      8 views
      0 likes
      Last Post rontronimous  
      Started by bcgeek, Today, 03:43 PM
      2 responses
      6 views
      0 likes
      Last Post bcgeek
      by bcgeek
       
      Started by Mberg, Today, 04:05 PM
      0 responses
      9 views
      0 likes
      Last Post Mberg
      by Mberg
       
      Started by dkbyond, Today, 03:52 PM
      0 responses
      5 views
      0 likes
      Last Post dkbyond
      by dkbyond
       
      Started by Newtrader101, Today, 03:09 PM
      2 responses
      7 views
      0 likes
      Last Post Newtrader101  
      Working...
      X