Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Like Tree1Likes
  • 1 Post By ValueTrader

Reply
Old 07-14-2011, 05:26 PM   #1

ValueTrader's Avatar

Join Date: Sep 2010
Posts: 72
Ignore this user

Thanks: 32
Thanked 16 Times in 12 Posts

EL Functions Questions..

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
Code:
 
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
ValueTrader is offline  
Reply With Quote
Old 07-14-2011, 05:50 PM   #2

ValueTrader's Avatar

Join Date: Sep 2010
Posts: 72
Ignore this user

Thanks: 32
Thanked 16 Times in 12 Posts

Re: EL Functions Questions..

Hopefully this will explain it better....

EL Functions Questions..-candlestick-chart.jpg


Thanks VT

Last edited by ValueTrader; 07-14-2011 at 05:55 PM.
ValueTrader is offline  
Reply With Quote
Old 07-14-2011, 09:32 PM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: EL Functions Questions..

Quote:
Originally Posted by ValueTrader »
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.

Quote:
Originally Posted by ValueTrader »
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.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
ValueTrader (07-15-2011)
Old 07-15-2011, 06:44 AM   #4

ValueTrader's Avatar

Join Date: Sep 2010
Posts: 72
Ignore this user

Thanks: 32
Thanked 16 Times in 12 Posts

Re: EL Functions Questions..

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?
ValueTrader is offline  
Reply With Quote
Old 07-15-2011, 08:21 AM   #5

ValueTrader's Avatar

Join Date: Sep 2010
Posts: 72
Ignore this user

Thanks: 32
Thanked 16 Times in 12 Posts

Re: EL Functions Questions..

NthHighest.

NthHighest(N, Price, Length)
Tams likes this.
ValueTrader is offline  
Reply With Quote
Old 07-15-2011, 08:58 AM   #6

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: EL Functions Questions..

Quote:
Originally Posted by ValueTrader »
...

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).
......
Thanks in advancve
VT
see this post (#3):
MultiCharts: Trading Software for Automated Trading and Backtesting &bull; View topic - EasyLanguage / PowerLanguage FAQ
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
ValueTrader (07-15-2011)

Reply

Tags
market profile, value trading

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jurik Easylanguage Functions Needed simterann22 Coding Forum 2 08-20-2009 12:01 PM
SwingHigh / SwingLow (EasyLanguage Functions) Tams Coding Forum 2 06-30-2009 04:40 PM
Functions In OEC Diff't Than TS Fyi Frank Open E Cry 0 03-01-2009 07:36 PM
[NQ] Questions Re NQ rs1 E-mini Futures Trading Laboratory 2 07-11-2008 08:47 AM
Some Questions Please AbeSmith Beginners Forum 11 07-09-2007 12:20 AM

All times are GMT -4. The time now is 10:51 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.