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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    335 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    211 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    196 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    288 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    245 views
    0 likes
    Last Post CarlTrading  
    Working...
    X