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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    54 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    25 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    17 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    24 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X