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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    48 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X