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.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

ValueTrader

EL Functions Questions..

Recommended Posts

Hi All,

Since joining the forum, I have come on leeps and bounds with coding, with special thanks to TAMS and Blowfish for there help. I now have a tool box of self written codes, that I will post shortly, feedback and improvments to these would be greatly appriecated.

Is this the forum for them or should i post the codes in the Indicator section?

 

anyway, I'm stuck on a couple of easylanguge functions i'd like to code.

 

The first is based on principles from the legendary Don Jones of Cisco futures..

 

I'd like to plot the highest and lowest price that has traded on 3 30min bars over an inputable number of days. In market profile / value trading, highs and lows represent rejection. A price that has traded 3 times is classed as value. Hope this explains what im looking for. I have checked all my EL books, but obviously what im after is quite specific.

 

The second is how do I code an OCO pair in EL, as some of my sim strats will bang in orders left right and centre (stops staying on ect).

 

I've also noticed that if code a Long Buy@ market order, the Sell short order doesnt seem to get triggered on the sim. The Sell does plot when i code it as dot on an indicator.

 

Finally with the stops do i have to code them twice in for each order? ie

 
if close > open then buy next bar at market
setdollarstop[50]
if close < open then sell next bar at market
setdollarstop[50]

 

or do I just place 1 stop at the end of the two orders?

 

Thanks in advancve

VT

Share this post


Link to post
Share on other sites
Hi All,

Since joining the forum, I have come on leeps and bounds with coding, with special thanks to TAMS and Blowfish for there help.

thanks for the compliment.

 

The first is based on principles from the legendary Don Jones of Cisco futures..

 

I'd like to plot the highest and lowest price that has traded on 3 30min bars over an inputable number of days. In market profile / value trading, highs and lows represent rejection. A price that has traded 3 times is classed as value. Hope this explains what im looking for. I have checked all my EL books, but obviously what im after is quite specific.

 

...

Thanks in advancve

VT

 

what you are looking for is the 3rd highest bar in a group of 3 bars.

Share this post


Link to post
Share on other sites

that makes sense, as the other two would have to trade higher, making it the highest 3 prices. I've i can code lowest high,highest low, but how does one translate this into looking back for the 3rd highest price?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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