Questions (2373)

Votes
Answers
Views
Question
0
votes
1
answer
1752
views
asked 5 years ago by
Category: Stock Scanners
Hi Pete.  I am looking for a code that simply scans for stocks in which the previous bar was and inside bar.  I came across the code below you provided in a previous post but it doesn't seem to identify stocks when I run an intra day scan. def count ...
0
votes
1
answer
90
views
asked 5 years ago by
Category: Chart Studies
Chart_MTF_MACDSTUDY.ts when I add this to a chart and then add another study this study goes blank. How do I avoid that?
0
votes
1
answer
84
views
asked 5 years ago by
Category: Chart Studies
Hi Pete, Can you suggest a script to mark distribution days on the charts? Distribution days, as defined by Investor's Business Daily, are days where the price declines by more than 0.2% and the day's volume is higher than the previous day. The distr...
3
votes
2
answers
96
views
asked 5 years ago by
Category: Chart Studies
Hi Pete, I was wondering how can tell the study to star the calculation over at  the very first candle of the day  the same way vwap can you help please, I was reading the answer here I can seem to find any. Thanks in advance def Data = if high then ...
1
vote
1
answer
187
views
asked 5 years ago by
Category: Strategy Guide
Okay guys so I'm trying to gain the ability to backtest a momentum strategy that I normally use as a scan The criteria for the scan are 1.5 times above average volume, gap up or low>high[1] and a exit signal that either occurs at the end of the we...
0
votes
1
answer
165
views
asked 5 years ago by
Category: Chart Studies
Hi Pete, I appreciate all the great work you do here.  I was wondering if there is a way to reference a previous low's RSI.  For instance within the last 30 bars a lowest low was achieved.  I would like to reference the RSI when that low occurred.  P...
0
votes
1
answer
2065
views
asked 5 years ago by
Hello - I would like to set up an alert when the following condition is True: If % change between closing price of most recent 1 minute bar and the second most recent 1 minute bar (i.e., t versus t-1) exceeds +0.25% OR -0.25% (i.e., a relatively big ...
0
votes
1
answer
332
views
asked 5 years ago by
Category: Strategy Guide
I am trying to backtest a strategy of 9/20 ema crossing (buying or shorting on the crossover) and am having a little issue. My code will initiate the initial buy when I want it to but it won't sell out and rebuy when the criteria is met. Any thoughts...
0
votes
1
answer
157
views
asked 5 years ago by
Category: Stock Scanners
Came across your website and am trying to find/create a scan for when the ADX crosses the DM-.  Seems like there might be an easy way to modify the scan you created for when DM+ crosses DM-, but I don't know much about coding and couldn't figure it o...
0
votes
1
answer
186
views
asked 5 years ago by
Category: Chart Studies
Mr Hanhn,   I've looked at one of your previous posts and tried to follow what you were doing but it's not transcribing the same for what I'm doing it seems. Would appreciate help if you were able   What I'm working on is inside the ## I'm ...