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 DannyP96, 05-18-2026, 02:38 PM
    1 response
    89 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    257 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X