Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate.OnPriceChange Still drawing on bar close

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

    Calculate.OnPriceChange Still drawing on bar close

    I assume I am missing something obvious, but I cannot get my indicator to draw a circle on a bar at the bar's open or when price crosses an indicator (PSAR). Calculate is set to Calculate.OnPriceChange, but in both cases the circles are drawing at the bar's close.

    Any help would be appreciated.​

    Click image for larger version

Name:	image.png
Views:	111
Size:	22.4 KB
ID:	1291626


    Click image for larger version

Name:	image.png
Views:	92
Size:	156.8 KB
ID:	1291627

    ​​
    ​​​

    #2
    Hello WestTrader,

    Thank you for your post.

    I see that part of your condition checks for "IsFirstTickOfBar" which would cause the action to occur only on the close of a bar:


    If you remove this bool from your condition, this should allow the logic to be checked on price change rather than only on bar close.

    Please let us know if we may be of further assistance.

    Comment


      #3
      Emily,

      Thanks for your response.

      Turns out the "IsFirstTickOfBar" was not the problem. I needed to turn on "Tick Replay" and change my data provider from Interactive Brokers to Kinetick Live Feed to receive tick data. Once I did this the indicator was drawing where expected.

      Comment

      Latest Posts

      Collapse

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