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.

ju99alo2

Members
  • Content Count

    5
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Chicago
  • Country
    United States
  • Gender
    Male

Trading Information

  • Vendor
    No
  1. Let me just say I'm very new to easylanguage. I put in the code that was in my last post, it verified but nothing showed up on the chart once I enabled it. From what I understand, what is missing is the code below. I tried adding it, but it will not verify now. Thanks if color = UpColor then buy next bar at market else if color = DnColor then sell short next bar at market ;
  2. I pulled this from the tradestation forums on someone else who tried to formulate a strategy as well. inputs: CompBars(6), UpColor(Blue), DnColor(Red), BarWidth(1); vars: haClose(0), haOpen(0), color(0); if BarNumber = 1 then begin haOpen = open; haClose = (O+H+L+C)/4; end; if BarNumber > 1 then begin haClose = (O+H+L+C)/4; haOpen = (haOpen [1] + haClose [1])/2 ; { .................................................. .............................. } if haClose > haOpen then color = UpColor else color = DnColor; for value1 = 1 to CompBars begin if haOpen <= MaxList(haOpen[value1],haClose[value1]) and haOpen >= MinList(haOpen[value1],haClose[value1]) and haClose <= MaxList(haOpen[value1],haClose[value1]) and haClose >= MinList(haOpen[value1],haClose[value1]) then color = color[value1]; end; if haClose > haOpen then Begin Buy next bar at market; End; if haClose < haOpen then Begin sell next bar at market; End; End;
  3. This is all I have so far guys if color = UpColor then buy next bar at market else if color = DnColor then sell short next bar at market ;
  4. I have looked back at all the previous posts and codes but cannot figure out how to get this strategy to work properly for Tradestation. I want to buy on the up colored bars and exit and reverse on the down colored bars. Any help would be greatly appreciated. Eric
  5. Does anyone have a code that puts the MACD, RSI, and STOCHASTICS into one indicator? They have it on TTM and looks like a showme indicator, as it appears in red and blue dots when all are in aggreement.
×
×
  • Create New...

Important Information

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