| Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL. |
![]() | | Tweet | |
XDays Back Hi-Lo (RT Intraday) Line Details »» | ||||||||||||||||||||||
// xDays back Hi-Lo (RT intraday) Line // author: MultiCharts // Version 1.01 // date: 2009053 // aaa // Hi-Lo extracted from the Day Open-Hi-Lo Lines Multicharts Indicator // added // StartDate( 1090515) YYYMMDD // lookback( 0 ) // set to 0 = StartDate // set to x nbre = x days back Please, if needed, feel free to correct my code ![]() Download Now
Screenshots Show Your Support
| ||||||||||||||||||||||
| The Following User Says Thank You to aaa For This Useful Post: | ||
Tams (05-23-2009) | ||
| Comments |
| | #2 | ||
![]() | Re: XDays Back Hi-Lo (RT Intraday) Line I try to add the price at the last bar of the top/low only in the current day without success Any suggestion is welcomed var5 = High ; var6 = Low ; Value10 = Text_New(Date, Time, var5 , "High"); Value11 = Text_New(Date, Time, var6 , "Low"); text_SetLocation(Value10, date, time, var5); text_SetLocation(Value11, date, time, var6); Text_SetString(Value10, "High"+ NumToStr(var5, 2) ); Text_SetString(Value11, "Low" + NumToStr(var6, 2) ); | ||
| |
|
| | #3 | ||
![]() | Re: XDays Back Hi-Lo (RT Intraday) Line Quote:
a mock up with arrows and notes would help... | ||
| |
|
| | #4 | ||
![]() | Re: XDays Back Hi-Lo (RT Intraday) Line My code is wrong or missing something | ||
| |
|
| | #5 | ||
![]() | Re: XDays Back Hi-Lo (RT Intraday) Line Quote:
You have to describe what is wrong or missing something. I can't read your mind. :-( try these ideas... var5 = HighD ; var6 = LowD ; // make the HL text labels first... so that you can "move" them later! if currentbar = 1 then begin Value10 = Text_New(Date, Time, var5 , "High"); Value11 = Text_New(Date, Time, var6 , "Low"); end; // move the HL text labels to new location text_SetLocation(Value10, date, time, var5); text_SetLocation(Value11, date, time, var6); Text_SetString(Value10, "High"+ NumToStr(var5, 2) ); Text_SetString(Value11, "Low" + NumToStr(var6, 2) ); Last edited by Tams; 05-31-2009 at 08:28 AM. | ||
| |
|
| | #6 | ||
![]() | Re: XDays Back Hi-Lo (RT Intraday) Line Quote:
![]() I don't find HighD LowD in the Multicharts User Guide... Anyway It works fine with this if currentbar = 1 then begin Multicharts User Guide Currentbar Returns the number of the current bar. | ||
| |
|
| | #7 | ||
![]() | Re: XDays Back Hi-Lo (RT Intraday) Line It is described in the EasyLanguage® Functions & Reserved Words Reference If you go to the PowerEditor, look under functions, you can see the codes inside HighD. HighD (Function) The HighD series function allows you to reference the daily high of a previous day in an intraday chart (minute or tick-based) or a daily chart. HighD is one of a family of functions that allows historical references across various data intervals. Syntax HighD(PeriodsAgo) Returns (Double) The daily high price from a specified number of days ago. If the PeriodsAgo parameter is out of range (> 50), or there is not enough data, the function will return –1. Parameters Name: PeriodsAgo Type: Numeric Description: Sets the number of days/periods back to reference a previous day’s high price. (50 days back maximum) (0 = Today’s current high) Remarks You must have enough intraday data in the chart in order to look back and reference any previous daily high. For example, if you want to look back at the high of 25 days ago on a 5-minute chart, you must have at least 26 full days of 5-minute bars in the chart. The value for the PeriodsAgo input parameter should always be a whole number greater than or equal to 0, but less than 51. Setting PeriodsAgo to 0 returns today’s current high. Example In order to place a short limit order at the High of the previous day you would write: SellShort Next Bar at HighD(1) Limit; See Also LowD, CloseD, OpenD, HighW, HighM, and HighY. Last edited by Tams; 05-31-2009 at 12:09 PM. | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
aaa (05-31-2009) | ||
| | #8 | ||
![]() | Re: XDays Back Hi-Lo (RT Intraday) Line they are more information in TS help than in MC help HighD is documented in TS 8.4 Easylanguage help.chm ( 3.5 Mo ) not in MC 5.0 Powerlanguage Help.chm ( only 0.2 Mo) | ||
| |
|
| The Following User Says Thank You to aaa For This Useful Post: | ||
Tams (06-06-2009) | ||
![]() |
| Thread Tools | |
| Help Others By Rating This Thread | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Intra Day Trend Line | Bfbusa | Technical Analysis | 1 | 09-21-2009 09:28 AM |
| Text and Line | Rouquet01 | Coding Forum | 6 | 05-31-2009 12:16 PM |
| 3 Line Break | lordbinder | Trading Indicators | 2 | 08-28-2008 09:17 AM |
| Dual RSI + RSI Mid Line Signals | Tresor | Coding Forum | 3 | 07-28-2008 07:12 PM |
| Andrews Pitchfork (Median Line) | justcatalin | Market Analysis | 16 | 04-06-2008 03:44 AM |