Trade FOREX with FXCM

  • Award-Winning Platform
  • 24/7 Customer Support
  • Trade Directly on Charts
  • Free $50K Practice Account
Register


Results 1 to 3 of 3
  1. #1
    Gustavo FX is offline Member
    Join Date
    Jul 2010
    Posts
    18

    Thumbs up ANSWERED - TREND FILTER

    Hello guys... is there some piece of code for add to other strategies that filter the trend and only generates orders in the direction of the trend ? I mean to a code that works with any strategie.

    Other question:
    I don't know exactly how to do a backtesting and optimization, I saw video with the instructions but bue my basic english i missed the most part of the explanation... is there some writen instructions?

    thanks
    Gustavo
    Last edited by Lucas Izidoro; 12-14-2010 at 03:37 PM.

  2. #2
    jdavis is offline FXCM Automated Platform Specialist
    Join Date
    Jan 2010
    Posts
    818
    Hello,
    On a very broad scale, what you are asking for is the virtual "holy grail" of any trading strategy in that it would only make winning trades in the direction of the trend. We are all looking for that strategy. Please provide some more information on what you would like. You can absolutely create code that with the use of a bool input would allow you to toggle long/short trades only, but there has to be a set of definable rules for when you would like these trades to be made.

    Regarding backtesting and optimization, the ST userguide has a section dedicated to optimization. Although, not terribly in depth, it's pretty good at covering the basics. Optimization is a very handy tool for finding a combination of input values that produce the best bactested results of a strategy. Take a simple strategy, like one of the moving averages, and play with it a bit, changing the range of input values and review the results. I recommend using a smaller range of values first or it could take a while for the results to be produced.

    -jd
    API Team

  3. #3
    Gustavo FX is offline Member
    Join Date
    Jul 2010
    Posts
    18

    TREND FILTER

    Hello jdavis..thanks for your answer..and sorry for my english... with my initial post I meant the following, (i can't explain it well in english but is something like this):

    I saw that there is a strategy http://forexforums.dailyfx.com/free-...top-limit.html

    that allows to filter the trend and only take BUY positions id the trend is UP and viceversa... the ''filter part'' is coding separately and ready for add to any strategy ??? if not I would like add that part to this strategie:

    - EMA's 2 line Crossover:
    http://forexforums.dailyfx.com/free-...crossover.html

    thanks
    Gustavo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.