Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

current timeframe (chart) compare Add Dataseries

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

    current timeframe (chart) compare Add Dataseries

    How to compare the current timeframe (chart) with the specified one using Add Dataseries

    the code
    // Additional dataset BIP1
    AddDataSeries (BarsPeriodType.Tick, 1);

    If BIP0 != BIP1

    //To do something

    Syntax please

    Thank you
    Last edited by memonolog; 05-25-2021, 03:48 AM.

    #2
    Originally posted by memonolog View Post
    How to compare the current timeframe (chart) with the specified one using Add Dataseries

    the code
    // Additional dataset BIP1
    AddDataSeries (BarsPeriodType.Tick, 1);

    If BIP0 == BIP1

    //To do something

    Syntax please

    Thank you
    sort of figured out

    if we work in the second dataset BIP1

    then comparing with the chart dataset aka BIP0

    It turns out like this

    Code:
    if ((BarsArray[0].BarsPeriod.Value != PeriodValue))
    {
    
    //make $ 1 million
    }

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    35 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    12 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    18 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X