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.

Mr.Flo

Members
  • Content Count

    4
  • Joined

  • Last visited

Personal Information

  • First Name
    Sven
  • Last Name
    Flo
  • Country
    United States

Trading Information

  • Vendor
    No
  1. Mr.Flo

    Opening Range

    The problem is that the function does not return the high/low of the opening range (9:30-10:30). Instead it shows: 1) the high/low of the current bar (should be opening range 9:30-10:30 high/low) 2) returns the high/low of current bar no matter if prior bars had higher highs/lower lows (should return the highest high + lowest low during the first 60min) Thanks
  2. Hey guys, I am working on an indicator in Tradestation which should show whether the last price is above/below the opening range (9:30 to 10:30). The indicator has to work on a 2min timeframe (radarscreen) since I am also measuring the price against some moving averages on the that timeframe. I was thinking of starting to store the (new) high and low from 9:30 to 10:30 and the print it at 10:30 so that it wont change after 10:30 but somehow the function for now always returns the LAST2min bar high/low. Basically I want to check the price at any time after 10:30 against the high/low of the first 60min of the day but cant use 60min timeframe due to the other indicators running on the 2min timeframe. Not sure how to fix it. Maybe you have an idea, I post the code below. Thanks! vars: myhigh(0), mylow(0), abovebelowOR(0); If Time =0932 then Begin myhigh=High; end; If high>myhigh then Begin myhigh=high; end; If time=1030 then Begin print(myhigh:0:2); end; plot1(myhigh,"H",green,black); If Time =0932 then Begin mylow=low; end; If low>mylow then Begin mylow=low; end; If time=1030 then Begin print(mylow:0:2); end; plot2(mylow,"L",red,black); If Time>1030 And last>myhigh then Begin abovebelowOR=1; plot3(abovebelowOR,"AB",black,green); End; If Time>1030 And last<mylow then Begin abovebelowOR=-1; plot3(abovebelowOR,"AB",black,red); End; If Time>1030 And last<myhigh And last>mylow Then Begin abovebelowOR=0; plot3(abovebelowOR,"AB",black,white); end;
  3. Works very good, thanks BlueHorseshoe!
  4. Hey guys, I am working on an idea to better filter my watchlist for rel. strength plays but having some trouble to implement my ideas in tradestation easylanguage. I guess I am not approaching it from the right view but might be easy for you guys. Would very much appreciate ur help on this. I am working on 2 indicators for radar screen but failed so far: 1) Count bars that close above 20 period moving average, start counting when first time price cross above 20 period moving average. Reset signal when close below. 2) Is it possible to compare a list of stocks directly to one symbol in a column. Trying to work something out for: %-change-from-open of symbol (in the watchlist row) divided by %-change-from-open of spy (or spx) so that I can see the rel. strength and weakness. Thankful for any ideas on how I can code those indicators!
×
×
  • Create New...

Important Information

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