• 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 Jack22, Today, 06:41 AM
      0 responses
      2 views
      0 likes
      Last Post Jack22
      by Jack22
       
      Started by wstovr, 11-13-2019, 08:21 AM
      4 responses
      22 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by CiprianV, Today, 03:11 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by ilai74, Today, 04:37 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by jimfurr, Today, 04:40 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Working...
      X