daily hi low indicator  [SOLVED]

Questions about MultiCharts and user contributed studies.
kdmezzo
Posts: 15
Joined: 19 Aug 2011

daily hi low indicator  [SOLVED]

Postby kdmezzo » 15 Dec 2017

I would like to have the ability to change the daily hi low indicator in multicharts to reflect
the new York close for forex. The daily hi low indicator included included is 24 hours from 2400-2400. how can I change it to 1700- 1700? Hope someone can help?

User avatar
TJ
Posts: 6971
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1995 times

Re: daily hi low indicator

Postby TJ » 15 Dec 2017

This is a 2 step process


Step 1. Create a custom template for the trading session 1700-1700.

Go to your QuoteManager
Under the "Tools" tab
select "Session Templates"
a new window will pop up (Custom Session Templates)
select "Add..."
another new window will pop up (Session Template)

Give this template a Description (eg NY forex)
Click "Add" button at the bottom left corner.
Check your open and close times.
Note: your session will end on 1700 the next day. Check "Session End".


Step 2. When you create your chart, specify to use this custom template.

If you are using a daily chart, select "Build From Minutes" option.

kdmezzo
Posts: 15
Joined: 19 Aug 2011

Re: daily hi low indicator

Postby kdmezzo » 15 Dec 2017

Thanks TJ for the reply. I have indeed done that but there is a daily hi low lines indicator that comes with multicharts
and I am looking to modify it so that it will reflect my custom sessions template. Any ideas?

User avatar
TJ
Posts: 6971
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1995 times

Re: daily hi low indicator

Postby TJ » 15 Dec 2017

kdmezzo wrote:Thanks TJ for the reply. I have indeed done that but there is a daily hi low lines indicator that comes with multicharts
and I am looking to modify it so that it will reflect my custom sessions template. Any ideas?




What is the EXACT name of the indicator?

Please post the codes here.

kdmezzo
Posts: 15
Joined: 19 Aug 2011

Re: daily hi low indicator

Postby kdmezzo » 15 Dec 2017

Day Open-Hi-lo Lines

kdmezzo
Posts: 15
Joined: 19 Aug 2011

Re: daily hi low indicator

Postby kdmezzo » 15 Dec 2017

Here is the code:

input:
PlotOpen( true ),

PlotPrevClose( false ) ;


variables:
var0( 0 ),
var1( 0 ),
var2( 0 ),
var3( 0 ) ;

condition1 = GetAppInfo( aiRealTimeCalc ) = 1 ;
if condition1 then
begin

var1 = DailyHigh ;
var2 = DailyLow ;

Plot1( var1, "High" ) ;
Plot2( var2, "Low" ) ;

if PlotOpen then
begin
var0 = DailyOpen ;
Plot3( var0, "Open" ) ;
end ;

if PlotPrevClose then
begin
var3 = PrevClose ;
Plot4( var3, "YestClose" ) ;
end ;

end ;

User avatar
TJ
Posts: 6971
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1995 times

Re: daily hi low indicator

Postby TJ » 15 Dec 2017

kdmezzo wrote:Here is the code:
...
end ;



In the future, please tag your codes

See post #1 & post #2
viewtopic.php?t=11713

User avatar
TJ
Posts: 6971
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1995 times

Re: daily hi low indicator

Postby TJ » 15 Dec 2017

kdmezzo wrote:I would like to have the ability to change the daily hi low indicator in multicharts to reflect
the new York close for forex. The daily hi low indicator included included is 24 hours from 2400-2400. how can I change it to 1700- 1700? Hope someone can help?



What is your chart resolution???

What is the problem?

Please post a screen shot.

User avatar
TJ
Posts: 6971
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1995 times

Re: daily hi low indicator

Postby TJ » 15 Dec 2017

OK, I have just tested the indicator.

This indicator is not suitable for instruments (or charts) that cross the 24 hr line.

kdmezzo
Posts: 15
Joined: 19 Aug 2011

Re: daily hi low indicator

Postby kdmezzo » 16 Dec 2017

thanks TJ appreciate it.


Return to “MultiCharts”