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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    566 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X