Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: machado
About
User Name: machado
Groups: Gold User, Member, TeleChart
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Unsure
Statistics
Joined: Sunday, March 13, 2005
Last Visit: Wednesday, October 24, 2012 8:14:19 PM
Number of Posts: 107
[0.04% of all post / 0.02 posts per day]
Avatar
Last 10 Posts
Topic: Label function
Posted: Wednesday, May 25, 2011 9:19:49 PM
Thanks Jas for the alternitive code its very helpful.

Yes I have been looking at the caned candelstick indicators they have be giving me futher insights on writing this stuff , it takes a litle bit of trial and error to get .net right (for me anyway). Its all about the syntax .

Thanks guys for all your help
Topic: Label function
Posted: Wednesday, May 25, 2011 9:32:22 AM
Bruce thanks so much for your help it is much appreciated.
Topic: Label function
Posted: Wednesday, May 25, 2011 9:18:03 AM
Ahhhh I get it now I thought that the

OpenValue = Price.Open
    HighValue = Price.High
    LowValue = Price.Low
    Plot = Price.Last

section didnt have to be replicated under the Else if line
It makes perfect sense

Do you recomend any books so I can get a better handle on real code

Bruce Thanks your the man
Topic: Label function
Posted: Wednesday, May 25, 2011 8:52:57 AM
Thanks Bruce for your response,

I have tried writing it  several diferent ways for instance:

If Price.DateValue.Day = 4 Then
    LABEL = "TEST1" AndAlso _
        Price.DateValue.Day = 18
    LABEL = "TEST2"

    OpenValue = Price.Open
    HighValue = Price.High
    LowValue = Price.Low
    Plot = Price.Last

Else    
OpenValue = Single.NaN
HighValue = Single.NaN
LowValue = Single.NaN
Plot = Single.NaN
End If

Also like this

If Price.DateValue.Day = 4 Then
    LABEL = "TEST1" AndAlso _
        Price.DateValue.Day = 18 Then
    LABEL = "TEST2"

    OpenValue = Price.Open
    HighValue = Price.High
    LowValue = Price.Low
    Plot = Price.Last

Else   
OpenValue = Single.NaN
HighValue = Single.NaN
LowValue = Single.NaN
Plot = Single.NaN
End If


The one that does plot is as follows:

If Price.DateValue.Day = 4 Then
    LABEL = "TEST1"

    OpenValue = Price.Open
    HighValue = Price.High
    LowValue = Price.Low
    Plot = Price.Last

Else   
    OpenValue = Single.NaN
    HighValue = Single.NaN
    LowValue = Single.NaN
    Plot = Single.NaN
End If


I cant figure out how to label both datevalues


Thanks so much for your help Bruce
Topic: Label function
Posted: Wednesday, May 25, 2011 12:08:22 AM
Bruce can you please help me out on this one, I have been trying to figure this one out but to no avail.

The way I understand it with the IF statement is that it will execute the line if true then move to the ELSEIF then execute that line if true. Or is the IF statement and the ELSEIF more like an OR.

Hopefully that makes sense

anyway I would like to label the bar on the 4th of every month "Test1" and also label the bar on the 20th of evey month "test2"

Thanks
Topic: Label function
Posted: Sunday, May 22, 2011 7:08:40 PM
Hi can someone please tell me what is wrong with this piece of code. As writtin  the code will not plot but if i remove the Elseif part it will plot. Am I missing a statement or something


Thanks

If Price.DateValue.Day = 4 Then
    LABEL = "TEST1"
ElseIf    Price.DateValue.Day = 20 Then
    LABEL = "TEST2"

    OpenValue = Price.Open
    HighValue = Price.High
    LowValue = Price.Low
    Plot = Price.Last

Else    
    OpenValue = Single.NaN
    HighValue = Single.NaN
    LowValue = Single.NaN
    Plot = Single.NaN
End If







Topic: SF 5.1
Posted: Monday, May 2, 2011 2:10:15 PM
What happended to SF5.1 no longer working on it?
Topic: SF 5.1 build 11 current?
Posted: Saturday, February 12, 2011 3:22:45 AM
Can we download stockfinder 5.1
Topic: StockFinder Build 38 Now Available
Posted: Saturday, October 30, 2010 8:42:42 PM
What happened to KUF did he quit
Topic: What computer power & memory needed to multi-task and use stockfinder 5?
Posted: Tuesday, October 19, 2010 10:41:43 PM
Hi All

My two cents, I was using a pentium M (1.4Ghz) laptop with Win XP and 1.5G of ram (a bit on the old side) and was having the same issues as all you were having. It use to take 1hour or so do do my scans. I got an HP Envy 17 Laptop with the Q840 I7 Proceesor with 8G of ram, Win 7  about 6 moths ago and let me tell you it throws SF5 around  like a rage doll. Insteade of taking 1hour to do my scans , it does it in about 4 min. Hope this helps

Carlos