Announcement

Collapse
No announcement yet.

Retreiving XTL color

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

  • Retreiving XTL color

    Hi

    I m creating some strategies that include the XTL also.

    How can I retreive the XTL color - for example
    is there a command that will get the color of the current live bar so I can then use it in my strategy ?

    Thanks a lot

    Noam

    p.s

    same question for color and relative position of the JTI

  • #2
    Greetings,

    To retrieve the value of the XTL for a bar, simply do something like the following.


    PHP Code:
    var xtl_study = new GetXTLStudy(35);
    var 
    curr_xtl null;
    ...

    function 
    main()
    {
          
    curr_xtl xtl_study.getValue(GetXTLStudy.XTL);
          return 
    curr_xtl;

    This is not intended to be run exactly as it is here, but simply demonstrates what function and member to call to retrieve the XTL value. Your account must be enabled with Advanced Get service to use this routine.

    The value returned by the getValue(GetXTLStudy.XTL) call, is either 0, 1, or 2 (integer).

    a returned value of 0 = red bar.
    a returned value of 1 = a blue bar.
    a returned value of 2 = a black bar.

    Cheers,
    Joshua C. Bergeron

    Comment


    • #3
      PS

      Can I ask how you've been using the XTL on your system? I've been working with it a bit myself.

      Cheers,
      Josh

      Comment


      • #4
        Please refer to this:
        http://forum.esignalcentral.com/show...?threadid=1173

        m.
        Matt Gundersen

        Comment

        Working...
        X