Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Crosses Over doesn't work

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

    Crosses Over doesn't work

    I must be stupid be I cannot get even a simple strategy to work correctly.

    I have the properties to set to calculate on 'price change'. I simply want to enter long as soon as the price of the current candle breaks the high off the previous candle.

    If I set the condition to 'high/ask/close' of period 0 'crosses above' the high of period 1, then the strategy produces 0 results. So I must be doing something wrong.

    I can get some results if I set the condition to 'high' of period 0 is 'greater than' the 'high' of period 1. But I assume this will constantly trigger a trade every time the price changes and this isn't correct.

    I only want the trade to trigger once the high is broken once. I don't want it to keep triggering. I'm unsure what to do.


    #2
    I can answer my own question.

    I found a forum post that suggest to use a variable to check if the entry bar was the same as a the currentBar to make sure the trade isn't triggered multiple times.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X