| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Previous Day OHLC in OEC Via Easylanguage Code:
variables:
Counter( 0 ),
YestOpen( 0 ),
TodaysOpen( 0 ),
YestHigh( 0 ),
TodaysHigh( 0 ),
YestLow( 0 ),
TodaysLow( 0 ),
YestClose( 0 ),
TodaysClose( 0 ) ;
if Date <> Date[1] then
begin
{ increment Counter to be sure enough data is processed - see comment below }
Counter = Counter + 1 ;
YestOpen = TodaysOpen ;
YestHigh = TodaysHigh ;
YestLow = TodaysLow ;
YestClose = Close[1] ;
TodaysOpen = Open ;
TodaysHigh = High ;
TodaysLow = Low ;
end
else
begin
if High > TodaysHigh then
TodaysHigh = High ;
if Low < TodaysLow then
TodaysLow = Low ;
end ;
if Counter >= 2 and BarType < 3 then { if at least one full day's data has been
processed and chart bar interval is daily, intra-day, or tick bar, then plot }
begin
Plot1( YestOpen, "YestOpen" ) ;
Plot2( YestHigh, "YestHigh" ) ;
Plot3( YestLow, "YestLow" ) ;
Plot4( YestClose, "YestClose" ) ;
end ; | ||
| |
|
| | #2 | ||
![]() | Re: Previous Day OHLC in OEC Via Easylanguage highd(0) = todays high highd(1) = yesterdays high highd(2) = high of 2 days ago opend(0) = todays open opend(1) = yesterdays open etc..... | ||
| |
|
| | #3 | ||
![]() | Re: Previous Day OHLC in OEC Via Easylanguage This is how I do it in Multicharts. You have a daily chart or scanner window with one indicator to save the values from the previous trading day and then another indicator reads the values on your intraday chart. | ||
| |
|
| | #4 | ||
![]() | Re: Previous Day OHLC in OEC Via Easylanguage Quote:
ie. someone wrote a script/"program" that perform those operations. | ||
| |
|
| | #5 | ||
![]() | Re: Previous Day OHLC in OEC Via Easylanguage | ||
| |
|
| | #6 | ||
![]() | Re: Previous Day OHLC in OEC Via Easylanguage A reserved word (also called keyword) is a "command/operation" that is built-in to the program. eg. High, print, array, text, etc. A function is a little "program", written with the reserved words, to perform certain operation. eg. MACD, stochastic, RSI, average, etc. A function might, or might not be residing in your program. If you haven't got it in your computer, you can get the code and install it. However a reserved word is built-in to your program. If your program haven't got that keyword, then that means your program does not support that keyword. There is no way to get that into your computer. e.g. some of the keywords in MultiCharts are not available in tradestation or OEC. | ||
| |
|
| | #7 | ||
![]() | Re: Previous Day OHLC in OEC Via Easylanguage I am just curious -- is there a way to tell if its a keyword or a function? I mean, you do you know opend(0) is not just a keyword in the world of Open Ecry? thx in advance. | ||
| |
|
| | #8 | ||
![]() | Re: Previous Day OHLC in OEC Via Easylanguage http://www.traderslaboratory.com/for...n-ts-5513.html | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Value Area And Previous Days Range] | Soultrader | Trading Videos | 11 | 09-05-2011 06:34 AM |
| Indicator As OHLC or Candlesticks in Investor/RT | forsearch | Linnsoft | 7 | 07-16-2008 08:33 AM |
| OHLC Marker for NT | pajusa | Technical Analysis | 0 | 03-27-2008 08:21 PM |
| Using Previous Day POC as Target | Dogpile | Market Profile | 11 | 06-01-2007 04:42 PM |
| [Candle Patterns and Previous Day High] | Soultrader | Trading Videos | 7 | 03-20-2007 02:20 AM |