Votes
Answers
Views
Question
0
votes
1
answer
1834
views
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
95
views
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
132
views
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
205
views
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
222
views
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
2171
views
Category:
Alerts and Notifications
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
449
views
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
192
views
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
213
views
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 ...
0
votes
1
answer
148
views
Category:
Chart Studies
Hello Pete and other, I have a spread % code here that using fine, but I would like to know if you can help me to place the output from the code inside a label. I don't know coding that's why I asking you for help. my code: Plot Spread =((ask-bid)/bi...
