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.

sneo

Members
  • Content Count

    59
  • Joined

  • Last visited

Posts posted by sneo


  1. let me rephrase to check your requirements:

    1. you want to obtain value of close for period where the condition Close > Average is met.

    2. reset function occurs where condition RSI > 50

     

    would the following solution suffice?

     

    inputs:
    PeriodReq(20),
    PeriodRSI(14);
    
    variables:
    RSI50C(0),
    MyVar(0);
    
    if Close > Average(C,1000)
    then begin
    RSI50C = IFF(RSI(C,PeriodRSI) > 50, Close, 0);
    end
    else
    RSI50C = 0;
    end;
    
    MyVar = Highest(RSI50C,PeriodReq);
    

     

    This will create a rolling fixed array that will:

    1. return Close if conditions (a) C > Avg and (b) RSI > 50 are met

    2. return highest Close over the past 20 periods

     

    ps: i did not test the code out on TradeStation. probably may have some syntax error. but probably you need just the basic structure.


  2. so what is the purpose of this thread?

     

    +505 pips on 83 trades of which 60 are winners, your average gain per trade is 6+ pips; +819pips on 191 trades of which 132 are winners, your average gain per trade is less than 5pips.

     

    Based on your histogram, 40+ % of the time you made 10pips or more, 14% of the time you make between 1 to 9 pips and 10% of the time you scratch. Your largest loss is bigger than your largest gain.

     

    I fail to see how robust and reliable your trade plan is. For a high frequency trading plan, the win ratio of about 70% that makes 6pips on average per trade does not seem to make me want to adopt this trading plan. You might want to explain further.


  3. i disagree with picking tops/bottoms and trading against the trend as "do not work" strategies.

     

    why? because:

     

    1. professionally, i trade profitably using both reversals and trend following strategies.

     

    2. factually, Vegasoul (a highly successful hedge fund) has three major components to their strategy, of which one is trading reversals. their results and strategy summary proves that reversal trading is not a "do not work" strategy. for the summary of their strategy and results, its available in EurekaHedge (subscription based) and Cogent Hedge (free upon registeration).


  4. One point to not about Sing is the iron fist of law that dominates everything there. The requirements for opening a retail account are much higher than in many countries, simply ruling many people in the region out of participating in the market (they go via Aus or UK etc instead). From a view of regulating large players though, this is somewhat attractive.

     

    I gather you are referring to the non-resident retail accounts opening. Think its there to protect the integrity of the financial system and the main idea is just to take in the big boys. the govvie needs to ensure investor confidence. we already have Pan El crisis, Nick Leeson and now Lehman Minibonds.


  5. I guess there are a couple of factors to consider as to whether the investors/financial institutions go to the respective places to set up business?

     

    The tussle is usually between Hong Kong and Singapore as the "next" Asian Financial centre, but I guess both could cater to different requirements - depending on asset classes, what kind of capital the people are looking for, what roles does the investors/FI want to fill in.

     

    Both are more or less quite good in govvie friendliness, infrastructure, accessibility to capital and more or less has some minor "defects" like Singapore is expensive, Hong Kong is highly polluted etc.

     

    From what I see, majority of the houses/hq for trading still resides in Tokyo and Hong Kong, while Singapore is mainly an ops, middle office dominant area. Its pretty tough to get trading jobs in major asset classes in Singapore (unless you talk about local equities, there still are roles in Singapore but I see its mainly in brokeages and not yet on bigger fund houses).

     

    of course, if you ask me to pick, I will pick my own home country - Singapore o.oV


  6. i am curious, aint S&P500 Futures on CME Globex? or am i seeing and trading fake prices for the past few years during Asian timezone.

     

    http://www.cmegroup.com/trading/equity-index/us-index/sandp-500_contract_specifications.html

     

    it says here for trading hours (their time i presume):

    1. Open Outcry -

    MON-FRI: 8:30 a.m.-3:15 p.m.

    2. CME Globex (Electronic Platform) -

    MON-THURS: 3:30 p.m.-8:15 a.m. (daily maintenance shutdown from 4:30 p.m.-5:00 p.m.)

    SUN: 5:00 p.m.-8:15 a.m


  7. R is more of a scripting language than a serious general programming environment, as mentioned above, but for financial analysis you should be able to implement some serious stuff after a few days with packages like R's quantmod - that would take months from a standing start with C++

     

    If the original poster wants to learn the principles of programming then C or Java are the sorts of things used in undergraduate CompSci classes. However for day to day rapid development I previously use perl and Java, and more recently hack up financial models in R

     

    In the real world, if you learn the principles of loops, conditionals, variable types and functions, then you have the basics of most procedural languages, and converting your knowledge from say VBscript, javascript, Bash, R, perl, and most of the platform specific scripting languages for the trading platform is a matter reading the manual.

     

    heh, I dont know whether to call MATLAB and R a programming language or not, but, I prefer to use the word environment XD. as Tom has mentioned, it reduces the time from idea to an actual work.


  8. as what programmer mentioned, it depends on what you really want to achieve with the programming language you learn.

     

    I'm not too sure if EasyLanguage is really classified as a proper programming language, what I do know from my own experience is:

    1. C++:

    for speed - writing programs (.exe) that speeds processes that you may want to do routinely. e.g. I use the end program to clean up ;arge xls and csv data files for data analysis.

    to be noted - strong in arrays, but dont try if you want to manipulate matrices. Its going to be a real pain.

     

    2. MATLAB:

    for manipulation of matrices, mathematical programming

    to be noted - not really portable to other computers (the MCR is a joke...the installation is big and you need to have the MCR relating to the same MATLAB version you created your little program). Its really expensive too.

     

    3. R:

    for data analysis. its called a statistical analysis environment, but I tend to view it as a general data analysis environment since there are so many packages for different usage asides statistical analysis.

    to be noted - its free, but GUI is really limited. console is the main way to do things. If GUI is important, Tinn-R has to be a companion to R. The combination will give a MATLAB-like GUI workspace.


  9. The code posted is the version of span using just lines. Their solution of plotting this with "High" "Low" to imitate the shading has a little problem. If plotting the 2 lines as "High" "Low", your OHLC chart as Bar Chart will appear erroreous. This solution means you can only apply "High" "Low" plot to your OHLC chart as Candle Charts.

     

    As I prefer to have the liberty of switching from Bar to Candle and back without any weird appearance of my charts, I find this solution incomplete and hence, did not apply it to the posted eld.

     

    You can still use the code posted, that will still be the solution of having the Spans as Lines rather than having the cloud shaded.


  10. Hi Sneo,

     

    Thanks for sharing the ichimoku indicator with us, I have been doing some reading about this indicator this week, and I wonder if you could change the settings of the "Cloud" to make them a leading Span. The Cloud isn't plotted into the future yet. Please correct me if I am wrong, but what I have read so far the Senkou Span A and the Senkou Span B - together they form the Cloud - should be plotted 26 days ahead of the last complete trading day.

    Thanks in advance for changing these settings.

     

    Yes, the span is plotted 26 days ahead. It is just that they dont appear after the current day. I have thought of the issue prior to posting.

     

    The reason is:

    The current eld uses TrendLines to plot the shading of the spans, and I have difficulties trying to shift forward the trendlines to shade the 26 days ahead (due to calendar weekends screwing up the shading). Would need someone more knowledgable to attempt to shade the span.

     

    The solution:

    I know the alternative is to not shade the span and just have SenKou Spans (as these are jus moving averages and is quite trivial to have them appear). But, I have difficulties visualising the cloud without the trendlines, so, I rather have the shade in place and gave up the forward "appearance".

     

    If someone has an alternative of shading the cloud, I would greatly appreciate the assistance.


  11. I'm not sure that everybody read Japanese on this forum...

    ;)

     

    I understand that. If most are not aware, the first book is written by a well known Ichimoku author Hidenobu Sasaki. Probably the leading book on the topic.

     

    Haven't found a book on the topic in English that is decent enough. (well, there is only one English book to begin with).


  12. under Tradestation, presently we have this tools: Fibonancci Cycle. This tool plots the fibo time lines (1,2,3,5 etc periods from a certain defined day). However, the periods for Fibo Cycle tool cannot be changed.

     

    I am wondering if there is anyone who has some form of experience in implementing a customised period time "trendlines" in easylanguage.

     

    PS: Not too sure if MultiChart has a similar tool. The question is directed more towards TradeStation users.


  13. printed source for ichimoku kinkou hyou (japanese):

    1.一目均衡表の研究 ISBN 4925152009 (ichimoku kinkou hyou no kenkyuu, Study of Ichimoku Chart Equilibrum)

    2.一目均衡表の基本から実践まで (よくわかる!シリーズ) ISBN 4775961047


  14. realised I had a typo in the ELD. for those who downloaded it, the error is as follows.

    instead of:

    SenKouNi = ((Highest(High, SanBan) + Lowest(Low, SanBan))/2)[sanBan] ;

     

    it should be:

    SenKouNi = ((Highest(High, SanBan) + Lowest(Low, SanBan))/2)[NiBan] ;

     

    see updated ELD attached (includes some adjustment on colors).

    ~ichimoku.ELD

×
×
  • Create New...

Important Information

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