Software Used to Trade Jack Hershey Methods

Discussion in 'Trading Software' started by Tums, Jun 26, 2007.

  1. Thanks LT, I'll have a look at it.

    lj
     
    #981     Feb 15, 2009
  2. Well, I have figured out most of my screw-ups. I decided that once the alarm triggered, to simply turn it off so it would not be annoying. This makes sense to me.

    It can always be re-enabled with Ctl-A.

    One thing I have not figured out how to fix: in creation or editing, when the P3 is placed out in white space, the slope is calculated incorrectly, because NT does not recognize a bar index in the future (it falls back on the CurrentBar).

    But as long as one places the P3 on an existing bar, there is no problem.

    I am open to suggestion for the fix. . . :)
     
    #982     Feb 15, 2009


  3. Actually I'm a hack programmer, but I'm persistent and I've learned to use Print() a great deal.

    Speaking of which, did you try printing out the values to see why you couldn't get p4 (I assume you used the X coordinate) to work for your automated off?

    Might give you useful information for your new problem, too...I wasn't anticipating you wanting to put p3 past CurrentBar when I did the slope calculation.

    :)

    - palinuro
     
    #983     Feb 16, 2009
  4. That's basically how I discovered it. :)

    I've hit this problem with NT before trying to address bars "in the future" and their response was you can't, using only NT routines & tools. As far as they are concerned, no bars exist past the current bar. White space is empty. :( A short-sighted view, IMHO.

    However, it occurred to me that the CalcVE routine MUST calculate slope in order to place the new P4. So it woiuld seem logical to find that calc & separate it into a new ChannelLogic method for re-use... So I will look into that today. Good thing it is a holiday! :D
     
    #984     Feb 16, 2009
  5. bi9foot

    bi9foot

    You have to use the canvas coordinates as opposed to the chart coordinates (for slope calculations, etc) because the empty space has no bars.

    A possible way of doing this is track the start bar (p1) and track the number of bars between pt1 & pt 3. Then convert both pt1 & pt 3 to canvas coordinates to get the slope.

    You will also have to determine the number of pixels between two bars so that you can figure out where your pt3 is located in the empty space.
     
    #985     Feb 16, 2009
  6. Hi all,

    Hope your holiday is going better than mine (whinge and moan).

    I've copied below a collection of 3 posts from the NT 'Charting' support forum having to do with what appears to be a screwup with the pepe JHM indicators. The posts outline the problem I'm having and I should also say I've been using the 'newest' version of the pepe indicators which incorporates the babs2000 fix among other things. Any help would be appreciated.

    TIA

    lj

    There are two attachments; one in this post and one in the next.

    First post, 2/15/09:
    Hi,
    A question for anyone. I trade using the Hershey method and have a number of Hershey-specific indicators which I use. Today when I brought up my charts, I noticed that the chart data for the ES 03-09 15 minute time frame shows no volume bars. If I start with an ES 15 min chart and toggle to higher or lower time frames, the volume bars 'reappear'. If I start with an ES 5 min chart and toggle through to 15 min, the volume bars 'disappear'. The data box shows that volume is being measured but for some reason the volume bars simply don't show up on the chart for the 15 minute time frame. If I use other indicators for the volume (VOL, VolumePRV, VolumeSCT, VolumeTricolor, Volume UpDown) then the bars are there.

    I tried doing a NT repair but nothing changed. It's as if the indicator I'm using won't properly interact with a 15 minute time frame parameter, which is totally wierd. Any ideas? Would an uninstall/reinstall of NT fix this?
    TIA
    lj

    Second post from NT Bertrand, 2/15/09:
    Hi ljyoung - do you get any errors in the Log tab of the Control Center? Can you please post a chart of your issue? Is this a custom indicator you use to display the volume info? Thanks!

    Third post, 2/16/09:
    Hi Bertrand,
    Let me answer your questions first. Yes I do get an error message in the Log when I toggle from an ES 03-09 30 min chart to the 15 min chart. This is shown in attachment 1. When I toggle back to 15 min from 30 min, there is no error message in the Log as is shown in attachment 2. Yes this is a custom indicator which has been working flawlessly until this past weekend. The attachments also show the problem I was speaking about, e.g., the loss of the volume bars in the 15 min trace.

    The error messages at 6:53:57 have been seen before and haven't been associated with any problem running the indicator that I've been able to detect. However I don't know whether this is really the case and it may be that both these errors are related.
    Thanks for your response and hopefully we can get this straightened out.
    lj (Larry)

    The error messages have been blurred because of the compression and thus I have printed them below:

    2/16/2009 6:55:29 AM Default Error on calling the 'OnBarUpdate' method for indicator 'PP_JHMVolume' on bar 1: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index

    2/16/2009 6:53:57 AM Default Error on plotting indicator 'PP_JHInfoBox'. Please check the 'OnBarUpdate' or the 'Plot' method: Object reference not set to an instance of an object
     
    #986     Feb 16, 2009
  7. Attachment 2. The compression required by NT is more stringent than ET's and so there is no blurring for these two attachmnets.
     
    #987     Feb 16, 2009
  8. Anyone have the Amibroker code
     
    #988     Feb 16, 2009
  9. Well, so you know the X coordinate isn't a bar index but the timestamp, which makes turning off the alarm automatically a simple matter of comparing the times of p4.X and currentbar.

    Since there are time coordinates on the chart all the way to the far right, you should be able to obtain the coordinates for p5 and use those to calculate the slope. Might be simpler than getting and using the canvas coordinates, though Pepe's ChartHelper has a lot of methods to make things easier - you probably don't need to invent anything new (though I haven't checked).

    - palinuro
     
    #989     Feb 16, 2009
  10. OK, I finally figured out how to calculate a future bar index -- I had to add a new routine to Charthelper, so make sure you save both files...

    The alert will trigger any time the current price is outside the RTL. I removed the cross-over as it was unreliable for some reason :(.

    Everything should be good now. Let me know if there are any failures (with the Channel Alert).

    FYI for all, it appears that some of Pepe's routines are designed for minute charts ONLY. Forewarned... Larry, I unfortunately cannot help you with Pepe's Volume as I use VolumeSCT.
     
    #990     Feb 16, 2009