Announcement

Collapse
No announcement yet.

help with maverick script

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

  • help with maverick script

    You mentioned you could not use compute on close with efsExternal? I have a problem and think this issue may be linked. I have a script that calls another using efsExternal. Everything was working great. I turned setComputerOnClose off with a // infront of it and now the script goes haywire and jumps to places its not supposed to. Is this to be expected or do I just have something coded wrong? The script im calling has compute on close commented out as well. I decided to use the barstate newbar to calculate the MA's on each bar close instead.


    -------------
    >Having said this I would not recommend using setComputeOnClose() for various reasons amongst which is the fact that it is not compatible with the efsInternal() and efsExternal() functions and/or when calling external intervals.

  • #2
    Geoff
    Without seeing the code it is not possible to determine whether the behavior you describe is to be expected or is the result of some coding error.
    Alex

    Comment


    • #3
      K.. I posted it in my 'Renegade Scipt' thread. Appriecate it..! Theres a lot of messy stuff in there and some from your trail stop examples file. But overall it has worked great until I started messing with it last night.

      I noticed that the profit target would tag in real time (tick replay) then not fill until the start of the next bar. I want to take that initial target gain when it touches the target not wait for the next bar to open. So I took out computeonclose and enclosedthe efsExternal in barstatenewbar becuase it has to run every bar not every tick. Then I ran it and my P&L porition comes up in a loop for the first part of the day then if I hit reload on the script it works. Puzzling.

      Comment


      • #4
        Geoff
        I see that Jason has already replied to you so you may want to check that thread
        Alex

        Comment

        Working...
        X