Recent content by DonStar

  1. D

    Good Question/Bad Question

    Thank you rdg. Good solid advice.
  2. D

    Good Question/Bad Question

    Thank you moneyclip. I can't find a "Thank you" button or I would use it. I really appreciate the time you take to help me. I will need a minute to digest this and I will get back with the results. Don
  3. D

    Good Question/Bad Question

    rosy2: Are you trying to sell me something? The site you have referred me to twice is a third party programming vendor. What's up?
  4. D

    Good Question/Bad Question

    Thank you moneyclip. I don't know C but I am hearing from people that AFL and C are similar. I appricate you taking the time to look at this and help me out. Okay, so DayOfWeek() returns an Array. I am just learning about arrays (AFL is kind of forcing that). I have assigned DayOfWeek() to...
  5. D

    AmiBroker AFL using Switch with DayOfWeek()

    Thank you rdg! This works great!
  6. D

    Good Question/Bad Question

    Thank you rosy2 for your help. I inserted the closing brace and this is what I get. Error 6. Condition in IF, WHILE, FOR statements has to be... (See attached)
  7. D

    AmiBroker AFL using Switch with DayOfWeek()

    Thank you dwrowley: I input the code you suggested. It compiles and prints to the chart. The problem is that the result is always 'Friday.' It doesn't matter what day it really is.
  8. D

    AmiBroker AFL using Switch with DayOfWeek()

    Thank you rdg: I plugged in the code as you suggested. It compiles without errors and I can apply it to the chart. The problem is that it doesn't do anything. I notice you are using a Return statement. Sorry, I am such a rookie, but what language do I need to get the result to...
  9. D

    Good Question/Bad Question

    I want to enhance the Title section of my charts by inserting the day of the week in front of the date: Friday, 12/30/2011. The DayOfWeek() returns a number. So I need to convert the number to text that says what day it is. Here is the code I have so far: for( n = 0; n < 10; n++ ) {...
  10. D

    AmiBroker AFL using Switch with DayOfWeek()

    Hi Quickless, The AmiBroker AFL reference guide gives this information: DAYOFWEEK SYNTAX dayofweek() RETURNS ARRAY FUNCTION Returns the array with day of week (0-6): 0 - Sunday 1 - Monday ... 5 - Friday 6- Saturday EXAMPLE buy = dayofweek() == 1; // buy on Monday...
  11. D

    AmiBroker AFL using Switch with DayOfWeek()

    Let me clairfy just a bit. I want to enhance the Title section of my charts by inserting the day of the week in front of the date: Friday, 12/30/2011. The DayOfWeek() returns a number. So I need to convert the number to text that says what day it is. So... varDayOfWeek = DayOfWeek()...
  12. D

    AmiBroker AFL using Switch with DayOfWeek()

    AmiBroker AFL DayOfWeek Syntax: DayOfWeek() Returns: ARRAY Function: Returns the array with day of week (0-6): 0 - Sunday 1 - Monday 2 - Tuesday 3 - Wednesday 4 - Thursday 5 - Friday 6 - Saturday I want to test DayOfWeek() and depending on the number returned, assign the...
  13. D

    Good Question/Bad Question

    I read the posting guidelines for this forum and I hope my question is a good one. I am looking for help using and understanding AFL code for AmiBroker. I know about the Yahoo forum but it is not as interactive as I would like. Any AFL programmers here that are willing to work with me...
Back
Top