|
|
|
|
|||||||
| E-mini Futures Dow mini's, S&P's, Russell, etc... |
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
|
||||
|
Re: Easy Language - Help with Simple System
Blu-Ray:
I know you have coded up some indicators in the past and posted them freely on this forum and for that I thank you for your generosity. I do have a simple EL question for you. How would one store the opening 60 min high and low as a variable to be used for other calculations? Thanks in advance. |
|
||||
|
Re: Easy Language - Help with Simple System
if you are using an hourly chart you could say "if date<>date[1] then..." and then save the high and low of this bar using whatever variables you want.
This is just a way of identifying the first bar of the session. |
|
||||
|
Re: Easy Language - Help with Simple System
another route is to declare a name for a variable like this (on 60-min chart):
vars: aa(0), bb(0); if time=1030 then aa=high; if time=1030 then bb=low; ---- then you can reference aa or bb in further code. or for 30-min chart: vars: aa(0), bb(0); if time=1030 then aa=highest(h,2); if time=1030 then bb=lowest(l,2); etc... ----- depending on further code, sometimes may have to write as: if time=1030 then aa=high else aa=0; |
|
|||||||||||||||
|
Re: Easy Language - Help with Simple System
Yes, it would be as waveslider mentioned on his post if your using an hourly chart, or alternatively if your using a smaller timeframe chart, then putting an "endtime" as input would be easy enough for you. Here's an example of the code you would need. Inputs: endtime (1030); Vars: HH(0),LL(0); if date<>date[1] then begin HH = high; LL = Low; end; if time <= endtime then begin if high > HH then HH = High; if Low < LL then LL = Low; end; Hope this helps Blu-Ray
__________________
Remember - Take the path of least resistance. |
|||||||||||||||
|
||||
|
Re: Easy Language - Help with Simple System
Thanks to both Blu-Ray and Waveslider for responding. Blu-Ray, I was looking to access the first hour highs and lows on a lower timeframe chart, so your solution was the one I was looking for - thanks again.
|
![]() |
LinkBacks (?)
LinkBack to this Thread: http://www.traderslaboratory.com/forums/f32/easy-language-help-with-simple-system-3045.html
|
||||
| Posted By | For | Type | Date | |
| Traders Laboratory - forumdisplay | This thread | Refback | 12-17-2007 10:19 AM | |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Chimp`s Universal Stop System | walterw | Forex Laboratory | 11 | 11-07-2007 01:49 PM |
| sharing your system | Don4 | Data Feeds | 10 | 03-06-2007 10:15 AM |
| Building a Computer System | wsam29 | General Discussion | 5 | 03-04-2007 06:28 PM |
| Blog System Launched!! | Soultrader | Announcements | 3 | 02-01-2007 07:31 PM |
| Mechanical System developers? | MseTrap | Data Feeds | 6 | 01-24-2007 06:30 PM |
|
|
|