Backtesting is sooo confusing , anyone got a good guide to learn how to do one?

Discussion in 'Forex' started by Wach80, Jul 6, 2016.

  1. Wach80

    Wach80

    ok i found a site for historical forex data , now it looks like this

    [​IMG]

    i have no idea at all , how to express those conditions into algorithms , this site doesnt have volume or open interest sadly , from the video i saw that only close price is neccesary to type a strategy , anyway how do i learn the algorithms?
     
    #11     Jul 6, 2016
  2. Dude you sound lost. No trend line I've ever seen can just be drawn on close data. That's not the purpose.

    You need to read some good books on TA I think, there u will learn the concepts you need to know. But yea you are lacking data as well.

    Probably best to use a pen and paper dude. It's not that different if you think about it.
     
    #12     Jul 6, 2016
  3. Metamega

    Metamega

    First off I doubt you'll find a good volume source for spot forex. Theirs no exchanges to record volume. If you did it be hard to know where they got the volume from.

    Second you'd need to define what draws a trend line. That be your first code, which wouldn't be easy. Perhaps simply connect the lowest low value of past 20 days? Could be more complex to this.

    I use Amibroker to backtest/ chart and I know from experience that trying to define something into a mathematical/ computer code formula is not always easy to define. Computers do exactly what you say.

    So here's the question, what are you trying to backtest. What kind of data do you need. Are you doing individual tickers or are you interested in portfolio level backtesting?

    Defining a trend line in Excel sounds like a nightmare for myself to comprehend.
     
    #13     Jul 6, 2016
  4. Wach80

    Wach80

    well at least i start to get an idea about how it is supposed to be done , you first need total data on paper and then mathematical codes to translate your conditions and all your ideas can be translated into algorithms , sounds simple but learning these mathematical codes are not easy at all , i wonder why there isnt any software capable to do the algorithms on its own and you simply enter the conditions you want
     
    #14     Jul 6, 2016
  5. K-Pia

    K-Pia

    First you need data.
    What data ? Depends what you look for.
    Some only need EOD datas but you may need intraday.
    Or anything else like Macro, Earnings, Microstructure related.
    Once you know what you need, get the data, then translate into code.
    You can run very simple strategy with EOD data on Excel.
    Simple as IF yesterday close > yesterday open,
    Then Close - Open which is to buy the day,
    At the open and close at the EOD.
    If you trade with daily candles,
    You won't need intraday.
    And excel will suffice.
     
    #15     Jul 6, 2016
  6. userque

    userque

    I've never tried it, but some say ninjatrader is easier??

    If all else fails, freelancer.com
     
    #16     Jul 6, 2016
  7. Wach80

    Wach80

    I dl amibroker , looks promising , it still requires coding , i also dont know how to make it scan forex data only , it has several tricks.
     
    #17     Jul 6, 2016
  8. Wach80

    Wach80

    Amibroker looks really good , i found how to import forex data and coding is organized well.
     
    #18     Jul 6, 2016
  9. %%
    Good word + good help MM;
    i like to print a 10 year candle chart sometimes also. Crayons work well, also+ they dont bleed thru like so many high- liters...........................................
     
    #19     Jul 6, 2016
  10. Hi,

    Backtesting the daily FX data isn't good enough, especially, when you don't have volume data.
    You need to backtest intraday data as well.

    if-else statement will do in algo.
    If you have a strong motivation then take some programming course as well as Finance research course.

    Since you have just started trading, never trade with more than 0.01 lot and no more than one trade at one time otherwise you will quickly lose your fortune.

    Keep trading and learn at a time.
    I think it will take 2 years at least to get decent skills to trade.

    All investment will take time
     
    Last edited: Jul 6, 2016
    #20     Jul 6, 2016