Recent content by ChoSingKum

  1. C

    TS code using “date of next bar” command with two data sources

    Hi Jock, You miss out this line I wrote: "At the last 5-min bar of the day, do the following: Use a loop to move the ... " Note: I no longer come to this forum regularly.
  2. C

    TS code using “date of next bar” command with two data sources

    Hi Jock, Okay, I was confused by your earlier objective of issuing an order on the last 5-min bar of the day to be good for the first bar of the next day. Since in this case, the order is not for that purpose, yes, the earliest it can issue that order is on the close of the first 5-min bar...
  3. C

    TS code using “date of next bar” command with two data sources

    Dear Jock, You will need to take care of the initial values of DATR when the number of days is less than 20. Something like this: Var: NumOfDaysGoneBy(0); . . . {Daily TrueRange} DTR[19] = DTH - DTL; NumOfDaysGoneBy = NumOfDaysGoneBy[1] + 1; . . . {Daily ATR} if...
  4. C

    TS code using “date of next bar” command with two data sources

    Hi Jock, It should not take long. You can try it out. If (marketposition = 0 and entrydate(1) < date) then... This is a combination of two boolean. Only when both are True then the combined condition is True. Can EntryDate(1) < Date be False? I actaully don't understand what you want...
  5. C

    TS code using “date of next bar” command with two data sources

    Hi Jock, Use Array. Go to the TradeStation help index tab and type in the word, array. There are three listings. Read them to get an understanding. Var: Counter(0), Sum(0), DTH(0), DTL(0), DATR(0); Array: DTR[19](0); With the above statement, the DTR array has 20 elements from 0 to 19...
  6. C

    Help with COT report release dates

    Well, if we get ourselves to understand how the CFTC get the work done, it is really not that difficult to understand why. As I have tried to explain earlier, they need some time to get the numbers compiled after they were submitted to them as of Tuesday position. For Jan2007, we all know that...
  7. C

    Help with COT report release dates

    The COT reports are released on Friday. Where Friday is a holiday, it will be released on the next working day. But which day it is released is not important as the numbers are always as of the Tuesday of the week. For example, this week. The numbers submitted will be as of Tue, Mar13 and the...
  8. C

    adding moving average line to equity curve

    It will certainly help very much if you get familiar with what is available in TS2000i. When in the TS2000i PowerEditor, look for the toolbar button with the "open book" icon. It is 3rd from the right. when you click on it, the EasyLanguage Dictionary will open. Here you can get an idea...
  9. C

    adding moving average line to equity curve

    I_OpenEquity certainly is in TS2000i. And if I remember correctly, it is also in the earlier TS4.
  10. C

    TS code for next day MOO exit using 5min data

    Hi RoughTrader, Jock will not be able to use the IntraBarOrderGeneration attribute in his TS 2000i. Also no SessionStartTime(x,x). These are only available in versions after TS 2000i.
  11. C

    TS code for next day MOO exit using 5min data

    Re my earlier post: Sorry, that should be: MOC will not work.
  12. C

    TS code for next day MOO exit using 5min data

    Re what I said earlier: I wasn't very clear here. I mean any order to be executed on the Close of the last intra-day bar of the day (instead of Close of the current bar) when you will be checking for the Date of Next Bar. I might not be entirely correct here. MOO will not work. Not sure...
  13. C

    TS code for next day MOO exit using 5min data

    I am happy for you. The time you spend on finding your (perfect?) code solution, which is independent on fixed close time, that overcome a necessary programming problem is well worth it. The solution is universal for any day-only instrument, meaning open and close on the same day. I am...
  14. C

    RSI Calculation: Consecutive Down Days

    Hi spinoza, Step (1) and (2) will show why you will not get a RSI value of 0 even when all 5 days are DOWN close (for 5-day RSI). Similar you will not get a RSI value of 100 even when all 5 days are UP close (for 5-day RSI). In your first post, I think you mentioned you use TradeStation...
  15. C

    RSI Calculation: Consecutive Down Days

    Hi spinoza, Something not quite right with the formula you have. From page 65 of J. Welles Wilders, Jr's book: New Concepts in Technical Trading Systems QUOTE The Relative Strength Index Equation The equation for the Relative Strength Index, RSI, is: RSI = 100 - (100/(1 +...
Back
Top