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 #

Trend Trigger Factor Expert by M.H. Pee

M.H. Pee's article in this issue, "Trend Trigger Factor" introduces an indicator
of the same name. Here, we present the formula for this expert advisor and the steps to include it in MetaStock.


Trend Trigger Factor Expert

1. In the Tools menu, select the Expert Advisor
2. Click New to open the expert editor
3. Select the Highlights tab
4. Click New to make a newhighlight
5. Enter the name as: Long
6. Set the color to: Green
7. Enter the following formula for the condition:

x:=15;
bp:=HHV(H,x)-Ref(LLV(L,x),-x);
sp:=Ref(HHV(H,x),-x)-LLV(L,x);
ttf:=((bp-sp)/(0.5*(bp+sp)))*100;
ttf>100

8. Click OK to close the highlight editor.
9. Repeat steps 4 through 8 to make the short highlight listed below:

Name: Short
Color: Red
Condition:
x:=15;
bp:=HHV(H,x)-Ref(LLV(L,x),-x);
sp:=Ref(HHV(H,x),-x)-LLV(L,x);
ttf:=((bp-sp)/(0.5*(bp+sp)))*100;
ttf<-100

10. Select the "Symbols" tab
11. Click New to make a new symbol
12. Enter the name as "Buy"
13. Enter the following formula for the condition:

x:=15;
bp:=HHV(H,x)-Ref(LLV(L,x),-x);
sp:=Ref(HHV(H,x),-x)-LLV(L,x);
ttf:=((bp-sp)/(0.5*(bp+sp)))*100;
Cross(ttf,100)

14. Select the "Graphics" tab
15. Set the symbol to the up arrow and the color to green
16. Click OK to close the symbol editor
17. Repeat steps 11-16 to make the sell symbol listed below:

Name: Sell
Condition:
x:=15;
bp:=HHV(H,x)-Ref(LLV(L,x),-x);
sp:=Ref(HHV(H,x),-x)-LLV(L,x);
ttf:=((bp-sp)/(0.5*(bp+sp)))*100;
Cross(-100,ttf)
Symbol: Sell Arrow
Color: Red

18. Click OK to close the expert editor.

 

 
--William Golson
Equis International
Source / From: TOP
http://www.traders.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!