Announcement

Collapse
No announcement yet.

Using graphs with different intervals

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using graphs with different intervals

    I have the following problem:

    PHP Code:
    function main() {
        if (
    prevMinuteCandleRev()) setBarBgColor(Color.green);
    }

    function 
    prevMinuteCandleRev() {
        if (
    open(-1) < close(-1)) return open(-1inv(1)) > close(-1inv(1));
        return 
    open(-1inv(1)) < close(-1inv(1));

    It works correctly but eSignal by default loads very small range of minute interval quotes. If I scroll back minute graph manually, eSignal loads it into memory and my code works correctly on 5 minute interval. But it's not usable.

    1) How can I load more data by default into eSignal?
    2) Will it work correctly on backtesting?

  • #2
    1) How can I load more data by default into eSignal?
    You do this by creating a "Time Template" that meets your needs and assigning said template to the chart with the efs you created.

    2) Will it work correctly on backtesting?
    I am not an expert in backtesting but from what I have tested it should work fine.

    Test it and see.

    Wayne

    Comment

    Working...
    X