Announcement

Collapse
No announcement yet.

debugging

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

  • #16
    wildfiction
    I believe the reason it no longer works in 7.9 is not because of changes in EFS but because of changes in how the spreads need to be written. A space is now required before AND after the operator.
    If you run the following script on a chart of IBM + NQ #F - NQ #F the old(er) solution should still work.

    PHP Code:
    function preMain() {
        
    setPriceStudy(false);
        
    setStudyTitle("LastTrade");
        
    setCursorLabelName("x",0);
        
    setCursorLabelName("y",1);
    }

    function 
    main() {

        var 
    getValue("Close",0,"nq #f + IBM - IBM");
        var 
    close(0,sym("nq #f"));

        return new Array (
    x,y);

    I have added also the EFS2 equivalent for comparison purposes.

    Irrespective with EFS2 the formula engine now takes care of all the synchronization issues so the new syntax is definitely the way to go IMHO
    Alex

    Comment


    • #17
      Thanks for that explanation about the change in the spread syntax Alexis.

      So you can confirm that the work around is no longer required right?
      Standing on the shoulders of giants.

      Comment


      • #18
        wildfiction
        It should no longer be required as all the synchronization is now handled by the formula engine.
        Alex

        Comment


        • #19
          thanks
          Standing on the shoulders of giants.

          Comment

          Working...
          X