Smart Money Index

Category: Indicators By: JC_Bywan Created: December 30, 2020, 10:53 AM
December 30, 2020, 10:53 AM
Indicators
0 Comments

A request was made in the probuilder forum, to code the « Smart Money Index » for ProRealTime, based on the definition :

  1. Calculate the S&P 500’s nominal gain or loss during the first half hour of trading (9:30 a.m. ET – 10 a.m. ET)
  2. Calculate the S&P 500’s nominal gain or loss during the last hour of trading (3 p.m. ET – 4 p.m. ET)
  3. Today’s Smart Money Index = yesterday’s Smart Money Index – the market’s gain or loss in the first half hour of trading today + the market’s gain (or loss) in the last hour of trading day.

First half hour and last hour can be customised in HHMMSS format at beginning of the code, to allow usage for any index from any timezone.

Code to use only with intraday timeframes where the 4 time settings exist.

Further reading for interpretation of the Smart Money Index : https://en.wikipedia.org/wiki/Smart_money_index

// PRC Smart Money Index
// 16.12.2020 mod 21.12.2020
// Noobywan @ www.prorealcode.com
// Sharing ProRealTime Knowledge
// Forum ProBuilder user Vinks_o_7 request

// Customise first 30 minutes for chosen index in user timezone
Opening30start=153000
Opening30finish=160000
// Customise last 60 minutes for chosen index in user timezone
Closing60start=210000
Closing60finish=220000
//
if opentime=Opening30start then
  p1=open
endif
if time=Opening30finish then
  p2=close
endif
if opentime=Closing60start then
  p3=close[1]
endif
if time=Closing60finish and p1<>0 and p3<>0 then
  p4=close
smartmoney=smartmoney-(p2-p1)+(p4-p3)
endif
//
return smartmoney as "Smart Money Index"

Download
Filename: PRC_req_smartmoneyindex.itf
Downloads: 197
JC_Bywan Master
https://market.prorealcode.com/store/volume-profile-solutions/ - Trading since 2008, using PRT since 2009, PRC forums moderator since 2016, helping out when I can. Using personal algorithmic universal market model (any market, any timeframe, self-adaptating no optimisation required), and volume profile and tape personal tools. Scientific coding skills from past life in aerospace sector, in Computational Fluid Dynamics.
Author’s Profile

Comments

Logo Logo
Loading...