Chart Studies (882)

Votes
Answers
Views
Question
0
votes
1
answer
398
views
asked 4 years ago by
Category: Chart Studies
Possible to get some help on my Position Size Script getting an error at def currentPrice.  There may be more issues I'm not aware of I'm very green at this!  Code: # Position Size Calculator based on max % account risk with variable position riskPer...
0
votes
1
answer
75
views
asked 4 years ago by
Category: Chart Studies
I am doing  a calculation risk amount base on a Inside Bar For example if the risk  is PRevHigh-PrevLow then If I want to no loose more thank 50 dollars for example I divide 50/risk  then it gives me the total shares I need to buy. I would like to ro...
0
votes
1
answer
81
views
asked 4 years ago by
Category: Chart Studies
Hi Pete, I am trying to make the Pivot Points study in thinkorswim to include the extended hours prices. As defined in TOS, it only considers regular trading hours. Could you please help me with this? What changes should I make to the original code? ...
0
votes
1
answer
310
views
asked 4 years ago by
Category: Chart Studies
Hello Pete I wanted to know if it was possible to have a MACD Histogram Label that follows the colors for the MACD Histogram? Label "MACD" Green, Light-Green, Red, Light-Red Thanks for any help with this. Ellis
0
votes
1
answer
225
views
asked 4 years ago by
Category: Chart Studies
def lastbar = IsNaN(close[-5]) and !IsNaN(close[-5+1]); plot N1_dot = lastbar[-5]; N1_dot.setDefaultColor (CreateColor(100, 250, 250)); N1_dot.SetLineWeight(2); N1_dot.SetPaintingStrategy(PaintingStrategy.points); ####################################...
0
votes
1
answer
145
views
asked 4 years ago by
Category: Chart Studies
Hi Pete, Hope you're well! Quick question, I got the below code from browsing online which plots yesterday's high and low onto the current intraday chart. I'm an absolute noob when it comes to TOS scripting whether it be for studies or scanners, and ...
0
votes
1
answer
120
views
asked 4 years ago by
Category: Chart Studies
Hi, I copied the following ADX source code from Tradingview but I can't seem to make it work on TOS.  Is there any adjustments that I need to make?  Thank you. It was too long so I'll attach it as an attachment.  
0
votes
1
answer
358
views
asked 4 years ago by
Category: Chart Studies
I'm trying to plot each days daily open (8:30am) on 5 min intraday charts with a 5 day time frame. I have the script below, however, it only plots the most recent open......is it even possible to do the above ? input opentime = 0930; input ORend = 09...
0
votes
1
answer
101
views
asked 4 years ago by
Category: Chart Studies
Looking for an example of a way to show a lower study as a simple horizontal bar that would be different colors based on the status of the indicator. Attaching a jpg for the idea. Any guidance appreciated. Thank you!
0
votes
1
answer
270
views
asked 4 years ago by
Category: Chart Studies
Hey Pete. Wondering if it's possible to create a script resulting in a percentage value of theta compared to the corresponding option price. Example: theta is -$0.45, and "last" price of an option at a particular strike price is $4.11. So script woul...