MetaStock™ Zone Tworzenie Sytemów Trader Shop Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

 

HTC N Bars Back by Neil Jon Harrington
Source: www.purebytes.com/archives/omega/1998/msg03598.html

Study : HTC N Bars Back

Shows the bar that is N bars back.
Useful to see what bar is being compared for momentum, highest, etc. Also useful to see what bar is about to be compared. Since you only want one moving "Show Me", using a trend line is appropriate here, since traditional Show Me's persist. The trend line is degenerate in that the start and end point is the same. The idea is to make the "line" thick so it shows up as a square dot in the center of the appropriate bar.

Remember, if you want to change the style, right-click the trend line, don't edit the Show Me.

Original : 03/27/98, Last Edit : 03/27/98

Created By : Neil Jon Harrington, Harrington Trading Co. (c) Copyright 1998
njh@xxxxxxxxx


Type : Show Me, Name : HTC N Bars Back

Input:
NBarsBk(8);

Vars:
TL1(0);

If CurrentBar = 1 Then { Create initial marker after the max bars back }
TL1 = TL_New (Date[NBarsBk + 3], Time[NBarsBk + 3], High[NBarsBk + 3],
Date[NBarsBk], Time[NBarsBk], TypicalPrice[NBarsBk])
Else Begin { This moves the marker bar after bar }
TL_SetBegin (TL1, Date[NBarsBk + 1], Time[NBarsBk + 1], High[NBarsBk]);
TL_SetEnd (TL1, Date[NBarsBk], Time[NBarsBk], High[NBarsBk]);
End;

If FALSE Then Plot1(0, "");
{ There must be a Plot statement to compile correctly. This never plots }

 

Source / From: TOP
https://www.tradestation.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 niesie ze sob± ryzyko poważnych strat finansowych!