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
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...
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)
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.
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...
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++ )
{...
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...
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()...
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...
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...