Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

Investor

Members
  • Content Count

    5
  • Joined

  • Last visited

Personal Information

  • First Name
    Bob
  • Last Name
    Jones
  • Country
    United States

Trading Information

  • Vendor
    No
  1. Hi, I'm trying to develop a strategy that switches between various securities. For example, suppose I want to buy jump back and forth between the SPY and TLT. Is this possible? For a random example, suppose I want the following (where SPY = Data1 and TLT = Data2): If c crosses above average(c, 10) then buy next bar at market; If c crosses below average(c, 10) then sell next bar at market and buy data2 next bar at market; Obviously this doesn't work in EasyLanguage, but I think it's clear what I want the strategy to do. Is there a way this can happen? Thanks for your help, Investor
  2. If you're trying to use it in Indicators as opposed to strategies use I_MarketPosition. Gives the same result. Investor
  3. Hello All, Is there a way in TradeStation to combine multiple charts into one? Say I have three different charts with varying strategies and indicators on each. I want to create a single single chart that draws information from each of them (like buy/sell signals, custom index values) and combines them into a single composite. I realize I could effectively do the same thing by creating one chart with multiple buy/sell rules, but that's not my goal. I'd like the composite to somehow be updated directly as a result of the three smaller charts. So that, for example, if I change something on the smaller charts, the composite will be changed as well. I've looked around TradeStation's help menu, but to no avail. Any help would be appreciated. Many thanks, Investor
  4. Hi BlueHorseshoe, Thanks for your response. I'm glad to see others have been using the same method, so I'm not completely off the mark at least. I would be grateful if Tams or someone else could offer a more efficient way. Any thoughts from anyone? Investor
  5. Hello all, I am new here. I have a few questions about print(). 1) If I am trying to get strategy/indicator data out of tradestation en mass into csv files in order to analyze it with other programs (excel, SAS etc) is print() the most efficient way to do this? Or is there some better way I can get all of my charts to print data automatically? 2) Is there a way to get column names to show up? E.g. "Date" "Close" "Moving Average" etc.? I have tried the following: If Currentbar = 1 then print(file("C:\User\filename.txt"),"Date",",","Close",",","MA") else print(file("C:\User\filename.txt"),ELDateToString(Date),",",c,",",MA); It works well enough (although it does skip the first bar of data) but it seems there must be a better built-in way? 3) I'd like to create an indicator called "PrintData" whose inputs include the file name and data to be printed. But easylanguage doesn't appear to let you treat the file name as an input. So print(file(FileNameInput),...) returns the error "File name expected here". Is there any way I can get around this? Side note: I only need end of day data, not intra-day, so computation time isn't a major concern. Thanks, Investor
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.