SPY blocks with price and colors - futures io
futures io



SPY blocks with price and colors


Discussion in ThinkOrSwim

Updated
    1. trending_up 523 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

SPY blocks with price and colors

(login for full post details)
  #1 (permalink)
alagrande
glendale ca usa
 
 
Posts: 97 since Sep 2017
Thanks: 11 given, 87 received

# Rigel, May 2018
#
declare lower;
#input Sym2 = "RUT";
input Sym2 = "SPY";

def c2 = close(symbol = Sym2);
def ma3=average(c2,3);
def ma35=average(c2,15);

addlabel( yes, "SPY", if c2>c2[1] then color.green else color.red);
#plot Dots = (HighestAll(high(symbol = Sym2)) + LowestAll(low(symbol = Sym2))) / 2;
#Dots.SetStyle(Curve.POINTS);
#Dots.SetLineWeight(5);
#dots.setDefaultColor(color.gray);
#Dots.AssignValueColor(if ma3 > ma35[1] then Color.GREEN else if ma3 < ma35[1] then Color.RED ELSE COLOR.GRAY);

AddLabel (yes, ((" ")), if ma3 > ma35 then color.cyan else if ma3 < ma35 then color.magenta else color.gray);

#METER_FUERZA
#declare lower;
input length = 3;#14
input ShowADXValue = {DoNotShow, OnLeft, default OnRight};
input DisplayStrengthMeter = {"No", default "Yes"};
input FixedValueBkgndColor = {default "No", "Yes"};

#def c2 = close(symbol = Sym2);
input lengthF = 13;#13
DEF FI = ExpAverage(data = (close(symbol = Sym2) - close(symbol = Sym2)[1]) * volume(symbol = Sym2), lengthF);


def ADX = DMI(length).ADX;
def DIBull = DIPlus(length);
def DIBear = DIMinus(length);

def BullishTrend = DIBull >= DIBear;

def ShowDigits;

switch (ShowADXValue)
{
case DoNotShow:
ShowDigits = 0;
case OnLeft:
ShowDigits = 1;
case OnRight:
ShowDigits = 2;
}


#if DI+ > DI- then trend is bullish
#if DI- > DI+ then trend is bearish
#if ADI >= 20 then market is trending

def HighlightColor =
if (FI >= 50) then 51 else
if (fi >= 40 and fi < 50) then 51 else
if (fi >= 30 and fi < 40) then 102 else
if (fi >= 20 and fi < 30) then 153 else
if (fi >= 10 and fi < 20) then 204 else
255;



AddLabel(!FixedValueBkgndColor and ShowDigits == 2, round(c2), CreateColor(if !BullishTrend then 255 else HighlightColor, if !BullishTrend then HighlightColor else 255 , 141));
#AddLabel (yes, "SPY", Color.WHITE);

#END CODE

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > SPY blocks with price and colors


Last Updated on June 4, 2019


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April
 

Seven Trading Mistakes Solved With Smart Trading Tools w/Brannigan Barrett

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts