EasyLanguage, want first BarValue, simple question but

Discussion in 'Trading Software' started by twinx, Nov 30, 2006.

  1. twinx


    simple question but I get not the info from EL_Ref_Guide.pdf or else manual.

    Have two dataseries "dataseries1" and "dataseries2"
    How can I reference the first bar in each case?
    This don't work: symbol1 = dataseries1[1] ;

    I also don't understand the "BarNumber" function.
    BarNumber = BarNumber[1] + 1;

    Can you help?
  2. klufba


    I assume you want to get the price for the first bar, so this is what you can do.

    for dataseries1:
    If currentbar data1 = 1 then symbol1 = Open;

    for dataseries2:
    If currentbar data2 = 1 then symbol2 = Open data2;