Hi Bruce,
what does "'# Cumulative" do?
and I would like to use this as an indicator and condition, is there any reason why I can't
|
Bruce, you ROCK!!
going to work on implementing it now.
|
Hi Bruce,
I want to scan for stocks that are making a new high (and low in another scan) of the day at certain times of the day. For example
If last is new high of day and time is between 1 PM and 2 PM then pass
Can that be done? Thanks in advance.
|
Hi Bruce,
I would like a condition that is true if a stock is at $XX.95
For example, $9.95 $10.95 $14.95
Actually, nothing key about "95 cents", just want to be able to search for true at any inputed amount in decimals, for example an even dollar amount at $9.00 $10.00 etc... although I will probably use .10 and .90 as the primary numbers to start out with
Thanks
|
Hi Bruce,
I know how to make a popup and sound alert when a condition is met, but I'm having trouble making it so that SF reacts only once per bar.
I have 1000+ symbols and the condition works fine, so if I can get the other part working it will be great.
currently I have:
If high > entrypoint then
pass
end i
If you can advise what and where that will be great.
Thanks in advance
|
Ok, thanks Bruce.
I think I found the problem as you illustrated in your reply. 5000 isn't 5000 shares traded, it's 500K.
once adjusted the problem was fixed.
|
Hi Bruce,
I'm using the following code and receive a response that I don't expect. I'm using a 2 min chart.
datasettings are 600 bars of data
varVolumeMin = 5000
volumeMult = .1
VolumeLongAve = volume.AVG(300, 30)
If VolumeLongAve < varVolumeMin Then
volumeadjust = (1 - VolumeLongAve / varVolumeMin) * volumeMult
diff = (diff * 1.0005) + .02 + (volumeadjust * 1.0)
End If
for tickers XONE and SLV stockfinder is showing a value of .10
volumeadjust = .10 when displayed as a indicator on the chart. It should be zero. When i use an indicator to display the values for VolumeLongAve and varVolumeMin they appear correct, but instead of a zero I get "10 cents"
|
Thanks Bruce,
How do I code that it's a new bar as apposed to just another tick?
Which reminds me of another feature that would be nice. I created the code to have a popup and sound when a condition is met, but it continues to pop up multiple times in a single bar.
It would be nice if it only popped once per bar and I'm guessing the code to limit that is what I need to have the other static variables refresh upon each new bar.
Can you provide a code example that tests if its a new bar?
|
Hey Bruce,
I keep banding my head on computer resource limits, and also recently I found a need to use a previous bar qualifier for a setup.
With that said, hopefully both issues can be solved with the same solution if I understand "static" variables correctly.
First, the previous bar's variable requirement -
I have a bunch of code to create a qualifying setup that includes previous opens, highs, closes, volume etc.. that gives me a value. I will call this value varSETUP. I also want a value from similar variables and I will call this varConfirmation
I want the previous bar's close to be greater than varSETUP and IF that happens, I want the current bar's high/last to be greater than varConfirmation in order to "PASS" to signal a trade opportunity.
Currently, I use code that checks the previous bar's data along with the current bar's data to perform the "pass" IF THEN inside a condition.
I am wondering if I can store the bar's data for it to be used as the previous bar's data upon a new bar (I'm using intraday data).
I want the same the compariable indicator.
Also, along the same lines, I use volume moving averages that are quite long (over 500 bars), I am wondering if I can use static variables to lower the processing power needed. I understand each bar makes a static variable increasingly "stale" when it's based on a moving average, so I would like to check after each bar and maybe recalculate it after X number of bars.
I'm not really sure how to make it happen or if using static variables are the path, but I'm open to all ideas.
Thanks
Bob
|
Hi Bruce,
I wanted to say thanks for the great service and your always prompt help.
I mentioned StockFinder in an article i wrote today. http://www.thestreet.com/story/11891776/1/solars-short-squeeze-days-are-numbered.html
Thanks again
Robert
|