log in     sign up for free
 
Show me the charts, and I'll tell you the news. Have an opinion on what the market should do but don't decide what the market will do. Be happy with a percentage of the move.
Bernard Baruch
 
 
Home
systems (284)
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
 

Buy

MetaStock

     (special offer)
 
 
 

Buy

EOD data for MetaStock

     (special offer)
 
 
 

Buy

Realtime data for MetaStock

     (special offer)
 
 
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

Trend Trigger Factor Expert

Formula for: MetaStock

expert advisor


 

 

Views:  2277

Added: May 18, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: MetaStock, expert advisor
 
Your Ad Here
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 new highlight
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.

 

 



Code:

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

 






Author: M.H. Pee
Source: http://www.traders.com

 

View similar (expert advisor for MetaStock):

Dunnigan Trend
%Bands II
ADX with Stochastic Signals
Triple MA I Exploration
ADX with Stochastic Signals
Squelch Threshold
Dynamic Moving Vertical Lines
TRIX Expert
Bollinger Band's & 13 Day Moving Average
Smoothed Stochastic Expert
...
 
 
all formulas for MetaStock
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012