Announcement

Collapse
No announcement yet.

is there a higest high or lowest low function in e-sig

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

  • #31
    You are using getValueAbsolute() rather than just getValue(). This means that you will always get the return for bar -1.

    Of course in replay mode -1 will change for each new bar drawn, but for historical data -1 will always be the bar before bar 0, and hence the same value.

    G
    Garth

    Comment


    • #32
      at least with getValueAbsolute i understand the result. when i switched to getValue i got a bizarre result (values over 100 for SPY). using a clip from the PreviousDayDailyBars efs seems to work but it seems to load and backtest much slower.

      PHP Code:
          vSymbol getSymbol() + ",D";

          
      vBarTime getValue("time");

          if(
      vBarTime != null) {
              
      vAbsTime getPreviousTradingDay(vBarTimevSymbol);
              if(
      vAbsTime == null)
                  return;
              
      vIndex getFirstBarIndexOfDay(vAbsTimevSymbol);
              if(
      vIndex != null) {
                  
      vPDHi getValueAbsolute("High"vIndexvSymbol);
                  
      vPDLo getValueAbsolute("Low"vIndexvSymbol);
              }
          } 

      Comment


      • #33
        Yes, date objects are very heavy weight in EFS. There are things eSignal is working on to make things like this easier and faster, but for now this is what we have.
        Garth

        Comment

        Working...
        X