NexusFi: Find Your Edge


Home Menu

 





bars and force/ think or swim


Discussion in ThinkOrSwim

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




 
Search this Thread

bars and force/ think or swim

  #1 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88

#bars and force

declare lower;
input averageType = AverageType.SIMPLE;

plot Z = 0;
Z.SetDefaultColor(Color.GRAY);
Z.SetLineWeight(2);
#Z.setPaintingStrategy(paintingStrategy.SQUARES);

input fastLength30 = 1;#12, 2
input price30 = VWap;
input slowLength30 = 8;#28, 16
input averageType30 = AverageType.SIMPLE;

plot WHITE = MovingAverage(averageType30, close, fastLength30) - MovingAverage(averageType30, close, slowLength30);
WHITE.SetDefaultColor(Color.WHITE);
white.setPaintingStrategy(paintingStrategy.HISTOGRAM);
plot W = expAverage(white, 6);
#plot W2 = average(white, 6);
white.assignValueColor(if white>0 and white>w then color.green else color.gray);


input LengthFI = 6;

DEF FI = ExpAverage(data = (close - close[1]) * volume, lengthFI);
#FI.SetDefaultColor(GetColor(8));

DEF FI2 = ExpAverage(data = (close - close[1]) * volume, lengthFI -3);



#plot ZeroLine = 0;



AddLabel (yes, (("/")), COLOR.WHITE);
AddLabel (yes, ((" ")), if FI>10 then CreateColor(0, 0, 255) else if FI<-10 then CreateColor(255, 255, 0) else Color.LIGHT_GRAY);
#
AddLabel (yes, ((" ")), if FI>20 then CreateColor(0, 85, 255) else if FI<-20 then CreateColor(255, 213, 0) else Color.LIGHT_GRAY);
#
AddLabel (yes, ((" ")), if FI>50 then CreateColor(0, 128, 255) else if FI<-50 then CreateColor(255, 170, 0) else Color.LIGHT_GRAY);
#
AddLabel (yes, ((" ")), if FI>100 then CreateColor(0, 170, 255) else if FI<-100 then CreateColor(255, 128, 0) else Color.LIGHT_GRAY);
#
AddLabel (yes, ((" ")), if FI>400 then CreateColor(0, 213, 255) else if FI<-400 then CreateColor(255, 85, 0) else Color.LIGHT_GRAY);
#
AddLabel (yes, ((" ")), if FI>500 then CreateColor(0, 255, 255) else if FI<-500 then CreateColor(255, 0, 0) else Color.LIGHT_GRAY);


input PaintBars = Yes;
AssignPriceColor (if !PaintBars then Color.CURRENT else if FI>400 then CreateColor(0, 213, 255) else if FI<-400 then CreateColor(255, 85, 0) else Color.CURRENT);
#UpBar > DownBar[0]
#input PaintBars = Yes;
AssignPriceColor (if !PaintBars then Color.CURRENT else if FI>500 then CreateColor(0, 255, 255) else if FI<-500 then CreateColor(255, 0, 0) else Color.CURRENT);

WHITE.assignValueColor(if !PaintBars then Color.CURRENT else if FI>500 then CreateColor(0, 255, 255) else if FI<-500 then CreateColor(255, 0, 0) else Color.CURRENT);


WHITE.assignValueColor(if FI>400 then CreateColor(0, 213, 255) else if FI<-400 then CreateColor(255, 85, 0) else Color.CURRENT);

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
Quantum physics & Trading dynamics
The Elite Circle
REcommedations for programming help
Sierra Chart
 
  #2 (permalink)
 
wldman's Avatar
 wldman 
Chicago Illinois USA
Legendary Market Wizard
 
Experience: Advanced
Broker: IB, ToS
Trading: /ES, US Equities/Options
Frequency: Several times daily
Duration: Hours
Posts: 3,534 since Aug 2011
Thanks Given: 2,069
Thanks Received: 9,556

Why are you posting naked thinkscript?

Is there an actual question?

Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
stakinloot
San Francisco, CA
 
Posts: 1 since Jan 2019
Thanks Given: 0
Thanks Received: 0


Hi Alagandre,

I am curious about the top indication bars on your setup here. Do you still have the code for it and do you mind sharing it ?? To be specific I am looking to see what these indicators represent as well. More importantly the number values .. for Vol, Price3, and V5bars. Thanks!!


Reply With Quote




Last Updated on April 2, 2020


© 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