NexusFi: Find Your Edge


Home Menu

 





Fear/Greed Indicator


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 5 posts (16 thanks)
    2. looks_two PegasusDK with 5 posts (10 thanks)
    3. looks_3 Mehul with 4 posts (0 thanks)
    4. looks_4 cory with 3 posts (9 thanks)
      Best Posters
    1. looks_one Fat Tails with 3.2 thanks per post
    2. looks_two cory with 3 thanks per post
    3. looks_3 PegasusDK with 2 thanks per post
    4. looks_4 Loukas with 0.3 thanks per post
    1. trending_up 27,494 views
    2. thumb_up 36 thanks given
    3. group 18 followers
    1. forum 31 posts
    2. attach_file 9 attachments




 
Search this Thread

Fear/Greed Indicator

  #11 (permalink)
 
bizman70's Avatar
 bizman70 
toronto, ontario
 
Experience: Intermediate
Platform: ninja trader
Broker: sterling, iqfeed
Trading: es, nq, 6e
Posts: 363 since May 2010
Thanks Given: 41
Thanks Received: 140

i would be interested in testing out when this is done

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
Deepmoney LLM
Elite Quantitative GenAI/LLM
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #12 (permalink)
 superpete 
Montreal, Quebec
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Trading Group/Rithmic
Trading: CL
Posts: 69 since Oct 2009
Thanks Given: 269
Thanks Received: 34

This looks very good! I'd love to be able to translate a thought or an idea in a real program or indicator! Congratulations to you guys!

Reply With Quote
  #13 (permalink)
PegasusDK
Odense, Denmark
 
Posts: 5 since Oct 2011
Thanks Given: 1
Thanks Received: 10


Hi Fat Tails,

I am very interested in getting more details about your progress with this Fear/Greed "twin".
I've been working on re-engineering both the Bloomberg Trender and the Fear/Greed-indicator for a while, so far with succes as for the Trender overlay, but I get stuck calculating the F/G.
I would be very happy if you could elaborate your work so far...

Regarding the Trender, I would be glad to provide the code and/or method.
I'm not an NT programmer (I code solely in Vikingen, a Scandinavian TA software package), so please advise me where to put it (forum/thread), if you want it.

Best regards
PegasusDK

Reply With Quote
  #14 (permalink)
 
Lornz's Avatar
 Lornz 
Oslo, Norway
 
Experience: Advanced
Platform: CQG, Excel
Trading: CL
Posts: 1,193 since Apr 2010


PegasusDK View Post
Hi Fat Tails,

I am very interested in getting more details about your progress with this Fear/Greed "twin".
I've been working on re-engineering both the Bloomberg Trender and the Fear/Greed-indicator for a while, so far with succes as for the Trender overlay, but I get stuck calculating the F/G.
I would be very happy if you could elaborate your work so far...

Regarding the Trender, I would be glad to provide the code and/or method.
I'm not an NT programmer (I code solely in Vikingen, a Scandinavian TA software package), so please advise me where to put it (forum/thread), if you want it.

Best regards
PegasusDK

Wow, Vikingen? Is that still being developed? Reminds me of when I first started out.

As far as the FG-indicator, isn't it simply a combination of TR and ATR. I would assume it was pretty easy to re-engineer, but I haven't really looked into it. I do some statistical work with ranges, though.

Cheers

Visit my NexusFi Trade Journal Reply With Quote
  #15 (permalink)
Loukas
London
 
Posts: 27 since Jun 2011
Thanks Given: 4
Thanks Received: 2

Hi Guys,

I have also tried to replicate the BLG Fear/Greed indicator but I am not satisfied with me results. It will be very appreciate if could you share your research.

Fat Tails could you explain what do you mean by "upcloses" and "downcloses"? How can I set these variables at NT?

"-> calculated two range series from the average true range, one from upcloses, the other one from down closes "

Thanks

Reply With Quote
  #16 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


PegasusDK View Post
Hi Fat Tails,

I am very interested in getting more details about your progress with this Fear/Greed "twin".
I've been working on re-engineering both the Bloomberg Trender and the Fear/Greed-indicator for a while, so far with succes as for the Trender overlay, but I get stuck calculating the F/G.
I would be very happy if you could elaborate your work so far...

Regarding the Trender, I would be glad to provide the code and/or method.
I'm not an NT programmer (I code solely in Vikingen, a Scandinavian TA software package), so please advise me where to put it (forum/thread), if you want it.

Best regards
PegasusDK

Sorry, I simply forgot this indicator, as I only had put little effort into the rebuilding. But I don't mind sharing this, as it is not complicated. So let me expose some of the principles:

Splitting the True Range

The true range normally has no direction, but you can split it into two different series.

TrueRangeUp takes the value of True Range if Close > Prior Close, but 0 otherwise.
TrueRangeDown takes the value of True Range if Close < Prior Close, but 0 otherwise.

I have also made experiments with close-to-open relationship, but as the true range is used, a close-to-close relationship seems to be more apporpriate.

If the range of a day stands for excitement - or sentiment - the close in relation to the prior close gives an indication whether the bulls or the bears made it. Winning a wide ranging, exciting day is more important than winning the battle of a narrow range day. Therefore the entire true range of a day is given to the winner.

Calculating WMAs from TrueRangeUp and TrueRangeDown

The next step is to calculate weighted moving averages from the two series TrueRangeUp and TrueRangeDown. For the WMAs you use a fast and a slow period.

Then you take the fast WMA calculated from TrueRangeDown series and deduct it from the fast WMA calculated from TrueRangeUp. A similar series is calculated from the two slow WMAs. The result is a fast and a slow oscillator series.

Deduct the Slow From the Fast Oscillator Series

Now comes the final step: You deduct the value of the slow oscillator series N bars ago from the last value of the fast oscillator series. The result is a basic version of the fear/greed oscillator. In my latest attempt, I have used N = 5, the periods for the raw oscillator series were around 90 for the fast and 150 for the slow period.

How does this oscillator generate the sentiment?

(1) It uses two raw oscillators built from the WMAs of the TrueRangeUp and TrueRangeDown series.
(2) The slow raw oscillator value of 5 bars ago is deducted from the fast raw oscillator of the last bar.

The direction is therefore given by the lag between the two oscillators. The lag is composed of the 5 bars and the inherent speed of reacting to trends, which is different for the two raw oscillators depending on the selected period.

Of course, I am not sure whether my approach is correct, as I do not know the original Bloomberg formula. I even do not want to know it, it is neither necessary to produce an exact replica. I would rather like to understand the underlying concepts, or whether this wil be just another indicator coming with a new dress but little substance.

Attached Thumbnails
Click image for larger version

Name:	ES 12-11 (60 Min)  04_10_2011 Fear & Greed.jpg
Views:	453
Size:	98.1 KB
ID:	50883  
Reply With Quote
  #17 (permalink)
PegasusDK
Odense, Denmark
 
Posts: 5 since Oct 2011
Thanks Given: 1
Thanks Received: 10

Fat Tails, thank you for providing your method and thoughts!
I've just been running a quick test in Excel, and it seems that the model is not very robust, i.e. a small change in the parameters causes the model to change a lot.
I then calculated a very short WMA (3-5 periods) on the result, and it made the model a little bit more robust.

As I understand your "FG-replica", it measures both the strength and direction of the volatility over a certain period, but as you also states, it needs a more thorough explanation to be fully understood.
I will definately keep on working with this one together with the Bloomberg Trender.

An explanation of the Trender is as follows:

Calculate an EMA on both MidPoint (=(high+low)/2) and TrueRange.
Add/subtract half of the EMA(TR) to/from the EMA(MP) to get the AdjustedMidPoint (=ADM).
Now Calculate x standard deviations of the EMA(TR), and add/subtract this to/from the ADM.
The sensitivity factor is the number of standard deviations.


@Lornz: Yes Vikingen still lives. Actually they have just been bought by another software company, who is in progress of porting it to a 64-bit Windows + alot of other enhancements.

Greetings to you all!
PegasusDK

Reply With Quote
Thanked by:
  #18 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


PegasusDK View Post
Fat Tails, thank you for providing your method and thoughts!
I've just been running a quick test in Excel, and it seems that the model is not very robust, i.e. a small change in the parameters causes the model to change a lot.
I then calculated a very short WMA (3-5 periods) on the result, and it made the model a little bit more robust.

As I understand your "FG-replica", it measures both the strength and direction of the volatility over a certain period, but as you also states, it needs a more thorough explanation to be fully understood.

I have not gone very far in testing the model yet, I am a bit busy right now, but I will share results on this as soon as possible. So far I do not understand, what the indicator really adds with respect to other standard MACD type indicators.


PegasusDK View Post
An explanation of the Trender is as follows:

Calculate an EMA on both MidPoint (=(high+low)/2) and TrueRange.
Add/subtract half of the EMA(TR) to/from the EMA(MP) to get the AdjustedMidPoint (=ADM).
Now Calculate x standard deviations of the EMA(TR), and add/subtract this to/from the ADM.
The sensitivity factor is the number of standard deviations.

PegasusDK

Thank you for sharing! The idea looks very much like a modified Keltner Channel

Keltner takes a SMA from Typical Price with a multiple of the simple range.
This one takes an EMA from Median with a multiple of standard deviations of the average true range.

So it determines the midpoint of the range via a moving average and then adds an envelope calculated from the average true range + standard deviations in order to show a confidence interval for price moves. I have seen a similar statistical approach when I had a look at the DevStop indicator by Cythia Kase. But I am not sure that the SD will yield more than a simple multiplier for the ATR. Of course the SD of the average true range breathes a little, but does this really improve results.

I think you can go with a simple Keltner Channel (EMA, Typical, Average True Range) instead, or if you want to use standard deviation bands, apply them to a VWAP:

Reply With Quote
  #19 (permalink)
Mehul
London, united kingdom
 
Posts: 27 since Nov 2011
Thanks Given: 2
Thanks Received: 3

Hi Pegasus,

Is it possible for you to provide a trender example in excel, either daily or intraday data ?

Thanks in advance

Mehul







PegasusDK View Post
Hi Fat Tails,

I am very interested in getting more details about your progress with this Fear/Greed "twin".
I've been working on re-engineering both the Bloomberg Trender and the Fear/Greed-indicator for a while, so far with succes as for the Trender overlay, but I get stuck calculating the F/G.
I would be very happy if you could elaborate your work so far...

Regarding the Trender, I would be glad to provide the code and/or method.
I'm not an NT programmer (I code solely in Vikingen, a Scandinavian TA software package), so please advise me where to put it (forum/thread), if you want it.

Best regards
PegasusDK


Reply With Quote
  #20 (permalink)
Mehul
London, united kingdom
 
Posts: 27 since Nov 2011
Thanks Given: 2
Thanks Received: 3


Hi fat tails

How Ve you been doing with your fear and greed, any more progress?

Thanks

Mehul





Fat Tails View Post
I have not gone very far in testing the model yet, I am a bit busy right now, but I will share results on this as soon as possible. So far I do not understand, what the indicator really adds with respect to other standard MACD type indicators.



Thank you for sharing! The idea looks very much like a modified Keltner Channel

Keltner takes a SMA from Typical Price with a multiple of the simple range.
This one takes an EMA from Median with a multiple of standard deviations of the average true range.

So it determines the midpoint of the range via a moving average and then adds an envelope calculated from the average true range + standard deviations in order to show a confidence interval for price moves. I have seen a similar statistical approach when I had a look at the DevStop indicator by Cythia Kase. But I am not sure that the SD will yield more than a simple multiplier for the ATR. Of course the SD of the average true range breathes a little, but does this really improve results.

I think you can go with a simple Keltner Channel (EMA, Typical, Average True Range) instead, or if you want to use standard deviation bands, apply them to a VWAP:


Reply With Quote




Last Updated on January 16, 2013


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts