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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    128 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X