Announcement

Collapse
No announcement yet.

calling dll from efs

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

  • calling dll from efs

    Hi all,

    I am very new to efs, so i decided to ask for some help.

    I have tradestation code:

    DefineDLLFunc: "PUSHPOP.DLL", VOID, "PUSH", LONG, LONG, LONG, DOUBLE;
    DefineDLLFunc: "PUSHPOP.DLL", VOID, "PUSHCLEAN", LONG;
    variables:hh(0),ll(0);
    if time=sess1endtime then begin
    hh=highest(h,16)/100;
    ll=lowest(l,16)/100;
    PUSH(1,date,0,hh);
    PUSH(2,date,0,ll);
    end;
    plot1(hh);
    plot2(ll);

    All it does is pushes daily high and low from minute chart to memory stack, later to be popped from another tradestation
    chart(kind of global variable).Pushing is done at the last tick of
    the session.

    Is there a kind soll out there that can code this in efs.

    Thanks in advance.

    Ed

  • #2
    egarone,
    Do you have a text version of pushpop.dll?

    Bob

    Comment


    • #3
      Hi Bob

      No I don't

      Ed

      Comment


      • #4
        ANYONE?

        Comment


        • #5
          Here is code from the fileshare area which can be called from any efs to obtain the high and low of the day.

          http://share.esignal.com/download.js...TodayOHLC1.efs

          /** This formula was created to allow for back to back callFuntion() calls from an
          external formula.

          i.e.
          HH = callFunction("/OHLC/getTodayOHLC1.efs","main","High");
          LL = callFunction("/OHLC/getTodayOHLC1.efs","main","Low");
          **/

          Please download the attached getTodayOHLC1.efs and save it in the OHLC subfolder of the Formulas folder.

          use these two steps in your efs and ensure the referenced efs is in the Formulas\OHLC\ folder. If required, create the subfolder.

          here is an example efs which calls this efs

          http://share.esignal.com/download.js...aysHighLow.efs

          here is a link that discusses how to use

          http://forum.esignalcentral.com/show...+AND+directory

          btw - no need to shout

          Hope this helps.

          Comment


          • #6
            Hi Trader

            Thanks for Your reply.

            todayshighlow.efs plots correctly in normal intraday charts.

            todayshighlow.efs doesn't plot properly in chart ES #F night session only(from 16:30 to 9:30 ET), and I couldn't anderstand why?

            Thanks

            Ed

            Comment


            • #7
              Are you using different time templates for the afternoon session?
              Last edited by Guest; 04-04-2004, 08:36 AM.

              Comment


              • #8
                Hi Steve
                Yes. from 16:30 to 9:30 ET

                Ed

                Comment


                • #9
                  Ed,

                  I believe the afternoon time template is the reason, it is getting it's information from that time template, which is not going to be reflective of the normal session.
                  Last edited by Guest; 04-04-2004, 08:50 AM.

                  Comment


                  • #10
                    Steve

                    It's not considering my chart sessions to break the the high low

                    lines, it's getting sessions from some place else.

                    Ed

                    Comment


                    • #11
                      Steve

                      if it's getting info from time template, then it would of worked.

                      Ed

                      Comment


                      • #12
                        ok

                        Comment


                        • #13
                          Ed
                          FWIW todayshighlow.efs retrieves the values for High and Low from the daily bar irrespective of Time Template. This means that if you are using ES #F it includes all trading from 15:30 to 15:15 CST. If instead you are using ES #F=2 then it will use only the data from 8:30 to 15:15 CST.
                          Alex

                          Comment


                          • #14
                            Thanks Alex!

                            Comment


                            • #15
                              Hi Alex

                              I understand what You wrote.
                              Is there any way to solve my problem?

                              Thanks

                              Ed

                              Comment

                              Working...
                              X