Welcome to the Traders Laboratory Forums.
Open E Cry The unofficial Open E Cry forum.

Reply
Old 10-21-2009, 04:17 PM   #1

Join Date: Oct 2007
Location: Small
Posts: 2
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Help with OEC Indicator Easy Language

I am trying to write a el code for OEC that plots an indicator using price movement from one time of day and compares it to another time of day and plots the difference.

For example: Let's say we take the price change of ES from 9:30 to 10:00 am and compare it to the price change from 3:30 to 4:00pm. Let's say it went up 2 points in the first 30 minutes and up 5 points in the last 30 minutes. This would plot on a daily chart and would be a difference of +3 points. If the indicator from the previous day was 89 then the indicator on the following day would be 92.

Anyone that can help me get started?...TIA,
minitrader is offline  
Reply With Quote
Old 10-21-2009, 10:31 PM   #2

brownsfan019's Avatar

Join Date: Jan 2007
Location: USA
Posts: 4,255
Ignore this user

Thanks: 1,912
Thanked 1,789 Times in 895 Posts

Re: Help with OEC Indicator Easy Language

mini - I am no programmer by any means, but here's what I've seen w/ OEC --

1) it can handle most EL type functions/indicators (but not all)

2) I'm not sure if it's w/in the OEC framework to do what you've described here - take data from a sub-daily chart and input it to a daily chart. I believe there's a few more functions needed for that and not sure OEC can do it.

If you can find this in EL, you can put it into OEC and see if it works.
brownsfan019 is offline  
Reply With Quote
Old 10-22-2009, 12:39 AM   #3

Join Date: Jan 2008
Location: San Francisco
Posts: 394
Ignore this user

Thanks: 17
Thanked 338 Times in 156 Posts

Re: Help with OEC Indicator Easy Language

some starter code for you -- I plotted this on 30-min chart. note that times are Pacific Standard in this so adjust as needed.

--------------------------------------------

//get return of first and last 30 min bars and find the point change from open to close
//value1 & value2 serve as 'variables' holding that particular days data
// note: California time 700 is first bar

if time = 700 then value1=close-open;
if time = 1300 then value2=close-open;

//calculate the difference
value3=value2-value1;


//take the calculated values and place them on a chart

if time=700 then
plot1(value1);

if time = 1300 then
plot2(value2);

if time > 1300 and time <1400 then
plot3(value3);

Attached Thumbnails
Help with OEC Indicator Easy Language-example.png  
Frank is offline  
Reply With Quote
The Following 2 Users Say Thank You to Frank For This Useful Post:
brownsfan019 (10-22-2009), minitrader (10-23-2009)
Old 10-23-2009, 12:26 PM   #4

Join Date: Oct 2007
Location: Small
Posts: 2
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts

Re: Help with OEC Indicator Easy Language

Thanks Frank. I will see what I can do with this
minitrader is offline  
Reply With Quote

Reply

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
Easy Language Indicator Help eggzactly Coding Forum 7 10-31-2009 08:38 PM
Easy Language Help JKLM Automated Trading 7 02-10-2009 11:17 PM
Help with Easy Language BrianA Coding Forum 29 01-13-2009 03:32 PM
Easy Language in OEC, Help with Channel Indicator popstocks Coding Forum 10 11-07-2008 06:09 PM
Easy Language Strategy Help Marc33139 Automated Trading 3 07-28-2008 11:35 AM

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