MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

High and Low of the First Hour

Hi

How can I highlight the first hour bar?

Is it possible to create a indicator that create a line on the high and low of the first hour of the session?


PTC Man,

Here is an indicator that will plot a line for the high and low of the first hour (assuming your first hour ends at 10:30 a.m.) on an hourly chart. You can change it to a dashed line which might look better on your chart.

{plots the high and low at 10:30 for this day on an hourly chart}


High and Low of the First Hour

H1st:=ValueWhen(1,Hour()*100+Minute()=1000,H);
L1st:=ValueWhen(1,Hour()*100+Minute()=1000,L);
H1st;
L1st;

 

Good Trading,

Joe J.


Joe

There must be something wrong because because I can´t see this indicator in any chart.

I ploted in a 60 min chart, 30 min chart and 5 min chart and nothing happen.

I change the hour to 1530 because here in Portugal, 1030 NY time is 1530 (0330 PM) PT time and I still can't see the indicator on the chart.

What appears to be the problem?


Thank you


PTC,

First, this indicator was only set-up to work on the hourly charts. The formula would have to be changed for 30 min, 5 min, etc.

Second, make sure you have all four lines of code (the last line should be L1st;) in your formula.

Finally, just double-check that your first hourly bar reads 1530 - this should be the end of the first hour of trading, not when it starts.

I tested this out before I sent it to you and it does work on my charts.

Good Trading,

Joe J.

Source / From: TOP
Equismetastock[at]yahoogroups[dot]com

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!