Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
XDays Back Hi-Lo (RT Intraday) Line Details »»
XDays Back Hi-Lo (RT Intraday) Line
Platform: 3.1, by aaa aaa is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: MultiCharts Rating:
Released: 05-23-2009 Last Update: Never Installs: 0
Supported
Re-useable Code Translations  

// 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

File Type: txt xDays back Hi-Lo (RT intraday) Line.txt (4.5 KB, 45 views)

Screenshots

XDays Back Hi-Lo (RT Intraday) Line-snap1.jpg  

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.
The Following User Says Thank You to aaa For This Useful Post:
Tams (05-23-2009)

Comments
Old 05-30-2009, 01:10 PM   #2
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: XDays Back Hi-Lo (RT Intraday) Line

I follow my idea, step by step, putting code from here to there

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) );
aaa is offline  
Reply With Quote
Old 05-30-2009, 11:19 PM   #3

Tams's Avatar

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

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

Re: XDays Back Hi-Lo (RT Intraday) Line

Quote:
Originally Posted by aaa »
...
suggestions welcome...


a mock up with arrows and notes would help...
Tams is offline  
Reply With Quote
Old 05-31-2009, 05:02 AM   #4
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

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...

My code is wrong or missing something

Attached Thumbnails
XDays Back Hi-Lo (RT Intraday) Line-untitled-1.jpg  
aaa is offline  
Reply With Quote
Old 05-31-2009, 08:08 AM   #5

Tams's Avatar

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

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

Re: XDays Back Hi-Lo (RT Intraday) Line

Quote:
Originally Posted by aaa »
I try to add the price at the last bar of the top/low only in the current day without success...
My code is wrong or missing something


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.
Tams is offline  
Reply With Quote
Old 05-31-2009, 11:22 AM   #6
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: XDays Back Hi-Lo (RT Intraday) Line

Quote:
My code is wrong or missing something
...You have to describe what is wrong or missing something.
So my code was good and you've found what was "missing" !!

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.
aaa is offline  
Reply With Quote
Old 05-31-2009, 11:51 AM   #7

Tams's Avatar

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

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

Re: XDays Back Hi-Lo (RT Intraday) Line

HighD is a function, not a keyword.
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.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (05-31-2009)
Old 06-06-2009, 05:51 AM   #8
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: XDays Back Hi-Lo (RT Intraday) Line

If it could help

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)
Attached Files
File Type: rar TS 8.4 Easylanguage help.rar (3.39 MB, 30 views)
File Type: rar MC 5.0 Powerlanguage Help.rar (196.4 KB, 16 views)
aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (06-06-2009)

Reply

Thread Tools
Help Others By Rating This Thread
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

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