Simple Tradestation Question (arrays)

Discussion in 'Trading Software' started by sslack88, Aug 1, 2006.

  1. sslack88

    sslack88

    Does anyone know if there is a simple way to view arrays in tradestation 2000i?

    For example, I created a variable called TARGET and I want to see the array values for TARGET on a Bar by Bar basis.

    This will allow me to troubleshoot problems with a trading system more effectively.

    Thanks,
    Steve
     
  2. insert the following.....

    breakpoint("name");

    in your code when you want to see the values of the array.
     
  3. maxpi

    maxpi

    I think only TS8 has breakpoints, not TS2000. You can use a print statement and print the entire array to a file. Use a For loop and cycle through the array and append the values one at a time to the file. If the file becomes huge this will be slow however as TS2k has to read the entire file every time before it appends.
     
  4. sslack88

    sslack88

    Thanks maxpi, the Print function worked perfectly.
     
  5. maxpi

    maxpi

    Glad to have helped. Happy trading to you