Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

ksungela

Members
  • Content Count

    4
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Rivervale
  • Country
    United States
  • Gender
    Male

Trading Information

  • Vendor
    No
  1. I'm trying to create a simple strategy using EL using a trailing stop (actually reversal) based on the high(low) of the last bar. If I'm long, I want to exit and go short if price drops to 1 tick below the low of the last bar. If I'm short, I want to cover and go long if price rises to 1 tick above the high of the last bar. I'm applying this to futures and basically want to reverse position based on the break of the previous bar high or low. When applied to a chart, i get entries and exits, but not when they should be. The code skips many trades which should take place. Any ideas what I'm doing wrong?:crap: Thanks in advance. if Marketposition = 0 and date = 1110621 then begin Buy ("long") 1 contract next bar at high[1] + 1 point stop; Sell short ("short") 1 contract next bar at low[1] - 1 point stop; end; if Marketposition = -1 and last >= high[1] + 1 point then begin Buy("Long") 1 contracts next bar at high[1] + 1 point stop; end; If marketposition = 1 and last <= low[1] -1 point then begin Sell short("short") next bar at low[1] - 1 point stop; end;
  2. Thanks. Already tried to compile, but some of the functions used in his code are not supported by OEC. I sent the code to OEC for consideration for inclusion in a future release.
  3. Yes. You posted a text file of the code for MT and TS. Do you have the code version for Openecry platform or would my next step be to import the text and then see if it compiles? Thanks!
  4. Does anyone know of an add-on or anything that will put a line connecting the entry and exit point on a chart like Ninja and TS has? It would be very useful to review historical trades after hours. I know a little triangle is placed on the chart, but it gets very difficult to keep track of entries and exits this way. Thanks in advance.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.