log in     sign up for free
 
The elements of good trading are: 1. Cutting losses, 2. Cutting losses, and 3. Cutting losses. If you can follow these three rules, you may have a chance.
Ed Seykota
 
 
Home
systems (284)
 
 
Special offer: buy AmiBroker and EOD+Real-Time 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

Psychological Index

System for: MetaStock


 

 

Views:  1798

Added: March 04, 2007
 
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, system
 
Your Ad Here
¡ To: "MetaStock listserver" <metastock@xxxxxxxxxxxxx>
¡ Subject: Psychological Index
¡ From: "Glen Wallace" <gcwallace@xxxxxxxx>
¡ Date: Sun, 6 Aug 2000 06:59:34 -0700
¡ Reply-To: metastock@xxxxxxxxxxxxx
¡ Sender: owner-metastock@xxxxxxxxxxxxx
There was an overbought/oversold indicator described in the June 2000 Futures Magazine called the Psychological Index. It looked sort of interesting, so I wrote the MetaStock code for it:

Psychological Index

{Futures Magazine, Vol.29 No.6, June 2000, P.48}
LookBack:= Input("Number of lookback periods", 2, 100, 12);
UThreshold:= Input("Upper threshold (%)", 0, 100, 75);
LThreshold:= Input("Lower threshold (%)", 0, 100, 25);
UpDay:= If(CLOSE > Ref(CLOSE,-1), 1, 0);
PsychIndex:= Sum(UpDay,LookBack) / LookBack * 100;
PsychIndex;
UThreshold;
LThreshold




The article described the standard lookback period as 12 bars with a level of 75% or higher being an indication of an overbought market and 25% or lower being an oversold market. Like most overbought/oversold indicators, it will give poor results in a strongly trending market, but perhaps using an ADX and trend direction filter, it might prove useful.
On 5-minute bars in the bonds, you have to constantly adjust the thresholds for an upward or downward bias, but if you increase the lookback period and widen the signal levels for less frequent signals, the results were interesting.

Regards.

System Tester code:


Psychological Index System

Enter Long / Close Short

LookBack:= opt1;
UThreshold:= opt2;
LThreshold:= opt3;
UpDay:= If(CLOSE > Ref(CLOSE,-1), 1, 0);
PsychIndex:= Sum(UpDay,LookBack) / LookBack * 100;
PsychIndex <= LThreshold


Enter Short / Close Long

LookBack:= opt1;
UThreshold:= opt2;
LThreshold:= opt3;
UpDay:= If(CLOSE > Ref(CLOSE,-1), 1, 0);
PsychIndex:= Sum(UpDay,LookBack) / LookBack * 100;
PsychIndex >= UThreshold


OPT 1 : min 1, max 25, step 1
OPT 2 : min 1, max 15, step 1
OPT 3 : min 1, max 15, step 1






[19420]
Re: Psychological Index

¡ To: metastock@xxxxxxxxxxxxx
¡ Subject: Re: Psychological Index
¡ From: HHP <hhp@xxxxxxxx>
¡ Date: Mon, 07 Aug 2000 10:40:54 -0700
¡ References: <009101bfffae$bef0aea0$5a124118@xxxxxxxxxxxxxxxxxxxxxx>
¡ Reply-To: metastock@xxxxxxxxxxxxx
¡ Sender: owner-metastock@xxxxxxxxxxxxx

Your UThreshold and LThreshold are the first time I've seen the Input() function used for this purpose. Good thinking. I'll steal that idea.

 

 



Code:

Psychological Index

{Futures Magazine, Vol.29 No.6, June 2000, P.48}
LookBack:= Input("Number of lookback periods", 2, 100, 12);
UThreshold:= Input("Upper threshold (%)", 0, 100, 75);
LThreshold:= Input("Lower threshold (%)", 0, 100, 25);
UpDay:= If(CLOSE > Ref(CLOSE,-1), 1, 0);
PsychIndex:= Sum(UpDay,LookBack) / LookBack * 100;
PsychIndex;
UThreshold;
LThreshold

 

Psychological Index System

Enter Long / Close Short

LookBack:= opt1;
UThreshold:= opt2;
LThreshold:= opt3;
UpDay:= If(CLOSE > Ref(CLOSE,-1), 1, 0);
PsychIndex:= Sum(UpDay,LookBack) / LookBack * 100;
PsychIndex <= LThreshold


Enter Short / Close Long

LookBack:= opt1;
UThreshold:= opt2;
LThreshold:= opt3;
UpDay:= If(CLOSE > Ref(CLOSE,-1), 1, 0);
PsychIndex:= Sum(UpDay,LookBack) / LookBack * 100;
PsychIndex >= UThreshold


OPT 1 : min 1, max 25, step 1
OPT 2 : min 1, max 15, step 1
OPT 3 : min 1, max 15, step 1


 





Source: http://purebytes.com/archives/metastock/

 

View similar:

Pivot Points All
Trend Analysis Index System
ANTI Trigger Trading System
Breakout & Breakin Signals
TRIX Trading System
07_Three Moving Average System
04_R2/Regress Slope/CCI/TSF
Dynamic BreakOut System I
Forecast Oscillator System Alternative
03_R2/Regress Slope/Qstick - (OHLC Rqd) Signal Formulas
...
 
 
all systems for MetaStock
all systems

 

 

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