Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TickSize Bug?

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

    TickSize Bug?

    I have found that when I have added a few data series in my indicator with AddDataSeries, when I use TickSize, the value keeps fluctuating randomly. I would have thought it would stay constant at the Main Instrument's tick size. For example if I have a EURUSD chart, and my indicator adds the data series for USDJPY in the code, shouldn't TickSize always be the ticksize of the base instrument of the chart (EURUSD)?

    #2
    Hello,

    Thank you for the post.

    I would expect the TickSize to match the instrument that called OnBarUpdate, not just the Primary. As the BarsInProgress changes the instrument specific values would as well.

    Are you seeing Random values or TickSizes of the instruments you are adding?

    You could check by using a Print like the following:

    Code:
    Print("BIP: " + BarsInProgress + " TickSize: " + TickSize + " Instrument Name: " + Instrument.FullName);

    I look forward to being of further assistance.

    Comment


      #3
      I think you can get the primary TickSize regardless of the current BarsInProgress value using this:
      Code:
      BarsArray[0].Instrument.MasterInstrument.TickSize

      Comment


        #4
        Great info, that makes sense. It was not a bug as I thought.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, Yesterday, 10:18 AM
        0 responses
        24 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, Yesterday, 09:50 AM
        0 responses
        14 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, Yesterday, 07:21 AM
        0 responses
        20 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        19 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        135 views
        0 likes
        Last Post SalmaTrader  
        Working...
        X