Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

minSizePrevious & barSizePrevious

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

    minSizePrevious & barSizePrevious

    I had coded these into one of my strategies and wanted to confirm I didnt make a mistake, I am trying to compare minimum candle size open to close for "minSizePrevious" and the maximum candle size for "barSizePrevious".

    I started questioning why I did that when in another strategy I have:
    && (Math.Abs(High[0] - Low[0]) / TickSize < 80)
    && (Math.Abs(Close[0] - Open[0]) / TickSize > 8))

    I don't think that I am measuring what I think I am as described above with minSizePrevious & barSizePrevious am I? What exactly do they measure and are they measuring by ticks in default? I do not have that called out anywhere.

    I tried to search for an index that describes all of this and all other commands but I could not find one.

    Thanks in advance.​

    #2
    Hello massgainstradingwi,

    It looks like you have the correct math however you also have a conversion to ticks by dividing by the tick size. The High[0] - Low[0] is the total range of the bar which would be the amount of difference between high and low. The same would go for the Close - Open giving you the difference between those two prices.

    Comment

    Latest Posts

    Collapse

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