PAINT YOUR BARS MOMENTUM - futures io
futures io futures trading



PAINT YOUR BARS MOMENTUM


Discussion in ThinkOrSwim

Updated by Drive
    1. trending_up 2,011 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 1 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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
 

PAINT YOUR BARS MOMENTUM

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

#########PAINT_MOMENTUM########
###########################PAINT MOMENTUM############
#input over_bought = 40.0;
#input over_sold = -40.0;
input percentDLength = 3;
input percentKLength = 5;

def min_low = Lowest(low, percentKLength);
def max_high = Highest(high, percentKLength);
def rel_diff = close - (max_high + min_low) / 2;
def diff = max_high - min_low;

def avgrel = ExpAverage(ExpAverage(rel_diff, percentDLength), percentDLength);
def avgdiff = ExpAverage(ExpAverage(diff, percentDLength), percentDLength);

def SMI = if avgdiff != 0 then avgrel / (avgdiff / 2) * 100 else 0;
###SMI.SetDefaultColor(GetColor(1));

def UpBar = SMI >avgrel ;
def DownBar = SMI<avgrel ;

input PaintBars = Yes;
AssignPriceColor (if !PaintBars then Color.CURRENT else if UpBar >= 0 and UpBar > DownBar[0] then Color.GREEN else if UpBar <= 1 and UpBar < DownBar[1] then Color.RED else Color.WHITE);
#UpBar > DownBar[0]

Reply With Quote
The following 2 users say Thank You to alagrande for this post:

Can you help answer these questions
from other members on futures io?
Dollar crash in 2021
Currencies
Degiro Negative Balance Advice
Traders Hideout
Macros for flatten and reverse
TradeStation
Ninjatrader 8, NT8, autotrading strategy stability
NinjaTrader
THINKorSWIM Scripting
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
VWAP for stock index futures trading?
49 thanks
Coronavirus COVID-19
20 thanks
Price Action Kewltech Style
19 thanks
Emini 4 Tick Scalp still valid?
13 thanks
Is back testing a waste of time?
13 thanks
 
(login for full post details)
  #2 (permalink)
Bakersfield
 
 
Posts: 7 since Feb 2019
Thanks: 0 given, 0 received

Is this for MACD or Stochastics?

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > PAINT YOUR BARS MOMENTUM


February 9, 2019


Upcoming Webinars and Events
 

An Afternoon With futures io member TropicalTrader

Elite only
     



Copyright © 2020 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