evanm |
Member, Platinum User, TeleChart
|
Registered User |
|
|
|
|
Unsure |
|
Thursday, September 18, 2008 |
Monday, October 25, 2010 9:32:07 AM |
65 [0.02% of all post / 0.01 posts per day] |
|
Other than using the "Add Trade-Based Rule / Target %"
How would i use real code to code the Profit Target Percentage for stockfinder 4.0.
(As a side note....FYI... The Add Trade Based Rule for Profit Target Percentage has a bug that I Found and Reported it , but your senior tech will not address it because its in stockfinder 4.0 and he will eventually get to fix it for 5.0, but 5.0 in my opinion is slower that 4.0 and has many bugs and i will not switch over for various reasons).
Example:
In other words....
If I shorted a stock on a particular close of a day
and Now I want to program a Profit Target to Exit at the Low of the Bar if the current bar's Low is 1.7% or better from the original entry price. How would i program that in Stockfinder 4.0 REAL CODE.
Thank you
EvanM
|
Thank you
But will this work for Stockfinder version 4 ?
EvanM
|
I have written the following code to calculate the difference in the top of the bollinger band and top of keltner channel and the different between the Bottom of Bollinger band and Bottom of Keltner.
Now my problem is that sometimes these MA calucation values can be a negative number.
How can i make the end result of a calculation an "Absolute" Value.
'# MA3 = indicator.MovingAverage.6
'# MA2 = indicator.MovingAverage.5
'# MA1 = indicator.MovingAverage.4
'# MA = indicator.MovingAverage.2
'*********************************************
'* if Price.Close > Price.Close(1) then Pass *
'*********************************************
'*** MA=TopBollinger Moving Avg
'*** MA1=BottomBollinger Moving Avg
'*** MA2=TopKeltner Moving Avg
'*** MA3=BottomKeltner Moving Avg
'***********************************************
Dim diff As Single
Dim diff2 As Single
diff = (MA.value - MA2.value) - _
(MA1.VALUE - MA3.value)
diff2 = (MA.value(1) - MA2.value(1)) - _
(MA1.VALUE(1) - MA3.value(1))
If diff > diff2 Then Pass
As shown above how can i have the following result in an absolute value
(MA.value - MA2.value)
evanm
|
THanks
But i am in version 4
How can i do that in version 4.
EvanM
|
I am trying to calculate the Top of a Bollinger Band Value - Less the Top of the Keltner Band Value (as well as the difference between the bottom values).
What i did was assign moving averages witha period of one to each of the top and bottoms of the bollinger bands and Keltner channels.
Now this is where I am stuck
How can i write a script that will allow me to come up with a value between the two and have it then pass or not pass my test....
What i want to do is the following... If:
'*** MA=TopBollinger Moving Avg
'*** MA1=BottomBollinger Moving Avg
'*** MA2=TopKeltner Moving Avg
'*** MA3=BottomKeltner Moving Avg
I want
MA.value - MA2.value = TopDifference and then take
Ma3.value - Ma1.value = BottomDifference and then
Take the Difference between both Top & Bottom = TotalDifference
If Total Difference
Please Help
Thanks
EvanM
|
Is there anything written for Stockfinder 4.0 on the BBSqueeze Indicator
its concept is based on capturing breakout moves by using the Bollinger Bands outside the Keltner Channels.
Whenever the Bollinger Bands fall inside the Keltner Channels the indicator will fire a signal. This signal is represented by a red dot on the lower pane.
When the Bollinger Bands breakout of the Keltner Channels the indicator fires a squeeze indicated by a green dot on the lower pane.
Interpretation:
The trading signal is taken when the green dot appears after the red dot in the direction of momentum.
Momentum is plotted as a histogram. If the momentum is blue (up) on a squeeze, this is a long signal. If the momentum is red (down) on a squeeze, this is a short signal.
See the link below for what the chart/indicator should look like:
http://www.mrswing.com/stockcharts/dev/index.php?content=bb_squeeze
Thanks
EvanM
|
Im still working on it, the solutions they gave wasnt great
|
Its been 3 years since this post, but can you (Craig or Support) assist with with converting this to StochFinder v4
PersonalwithMINMAXValuePoint.bWorks
Thanks
EvanM
|
We are almost there :-)
But looking at the same symbol as in the initial request "VLO" it should have also have found
Divergence between 01/08/2010 vs 01/20/2010.
and divergence between 7/27/2009 vs 08/05/2009
Using Price against the MACD 5,34,5 Simple Histogram
Any ideas on how to fix this ?
EvanM
|
BruceThank you, That worked !!!
|
|