Converting EasyLanguage to TickZOOM?

Discussion in 'Trading Software' started by greaterreturn, Dec 22, 2008.

  1. People have asked about documenting how to convert EasyLanguage code to run on TickZOOM. I'd like to get that done before releasing at the end of this month.

    I already converted some EL scripts that I use personally but wondering if anyone wants to send here or in PM an EasyLanguage script to convert.

    A few examples to document would be good.

    One goal of TickZOOM is that you can drop an EasyLanguage script into a C# class and use it right away with very minimal code changes--basically some search and replace.

    To demonstrate, let's take a couple and convert them with a "before" and "after" shot of the code on the wiki along with a resulting chart for someone to check the result for correctness.

    Please advise. All suggestions welcome.

  2. Tums


  3. Tums, I noticed in your premium/discount indicators that it uses two sets of data.

    Like so:
    DerivativeH = high data1 - high data2;
    DerivativeL = low data1 - low data2;
    DerivativeC = close data1 - close data2;
    Was that an original EasyLanguage way of referring to sets of data? I assume it's a Multi Charts extension.

    TickZOOM at the moment only allows one symbol at a time although internally it can handle unlimited.

    Here's my question for anyone to comment?

    What's the best way to specify multiple symbols with the same strategy?

    TickZOOM already handles up to 64 simultaneous bar intervals.

    So let's say you want to consider two Forex symbols within the same strategy.

    At the moment, TickZOOM in C# uses syntax like this to refer to different bar intervals:

    Bars.High[0]  (default symbol)
    Minute.High[1] (1 minute bars)
    Hour4.Low[2] (4 hour bars)
    Range30.Close[0] (30 point range bars)
    I propose we first declare the instruments like so:

    Instrument usdjpy = Instrument.Get("USD/JPY");
    Instrument eurgbp = Instrument.Get("EUR/GBP");
    Then in your strategy you can refer to


    I suppose to imitate the mulitcharts a little more you could have the data symbols set by property so:

    Instrument data1 = Instrument.Get(data1Symbol);
    Instrument data2 = Instrument.Get(data2Symbol);
    Then to translate the script above we have:

    DerivativeH = data1.high[0]  - data2.high[0];
    DerivativeL = data1.low[0]  - data2.low[0];
    DerivativeC = data1.close[0]  - data2.close[0];
    Any thoughts on the issue of multiple instruments?

  4. Tums


    That's the EasyLanguage standard.
  5. Tums


    Looking good !