Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate.OnPriceChange over many unchanged bars

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

    Calculate.OnPriceChange over many unchanged bars

    I am looking for clarification about Calculate.OnPriceChange. The specifics are below:

    1) I have a strategy set to Calculate.OnPriceChange
    2) Primary bars: 1 minute bars
    3) I am currently LONG in the stock
    4) A trigger is set to CLOSE the trade. The trigger looks to an indicator on a previously closed bar.
    5) The indicator that will trigger the CLOSE changes from bar to bar. (ADX, RSI, Bollinger Band, etc. do this...)
    6) The price has not changed for six minutes, but there is a considerable amount of volume.

    Since the price hasn't changed in six minutes, would a valid CLOSE signal be skipped/ignored in minute three of this scenario?

    Thanks.
    Last edited by ArmKnuckle; 08-23-2019, 08:10 AM.

    #2
    Hello ArmKnuckle,

    Thanks for your post.

    The Calculate setting determines when the OnBarUpdate() method is called.

    Calculate.OnBarClose means the method and its code are run once at the end of the bar

    Calculate.OnEachTick means the method and its code are run once for every incoming tick.

    Calculate.OnPriceChange means the method and its code are run once for each change in price. If you have no change in price then the OnBarUpdate() would not execute.
    "Since the price hasn't changed in six minutes, would a valid CLOSE signal be skipped/ignored in minute three of this scenario?" if the conditions to generate the signal no longer exits when the OnBarUpdate() is called, correct a signal would not be generated.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 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