[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] AFL Probs


  • Date: Thu, 25 Feb 2010 22:11:45 -0800
  • From: "NW Trader" <pk47hargus@xxxxxxxxxxx>
  • Subject: Re: [amibroker] AFL Probs

PureBytes Links

Trading Reference Links



Hi Abbas Ali,
 
I guess I don't know what you mean by "filter out".  But here is another stab at it. Do you mean identify when yesterday's close is equal to the low of the 10 days prior to yesterday?  While similar, this is a little different from your original request which asked about Low values, not close values.
 
If so, then the code I sent for LL2 could be modified to substitute C for L.  Thus:
Cond = Ref( LLV( L, 10), -2) == Ref(C , -1);
 
What you have posted says that Cond is true when yesterday's close is identical to the lowest low value of the previous day's close over the past 10 days. Again an identity.  Your mistake remains in the construct of LLV.  Read the AFL explanations for Ref and LLV. 
 
Suggestion: Visualizing what you want by writing your condition as a plot statement and/or as code to put a shape on a simple bar or candle chart.  Then if it doesn't look correct, tweak that code.  In learning AFL, it is often best to work with being able to show what you want on a chart before proceeding to explorations, trading systems, etc.  But then, I'm a visual learner.
 
Peace and Justice   ---   Patrick
----- Original Message -----
Sent: Thursday, February 25, 2010 8:30 PM
Subject: Re: [amibroker] AFL Probs

Dear NW Trader,
Thanks for ur reply.
But still my prob is not solved, what i want is TO FILTER OUT DATA WHICH HAS ITS PREV CLOSE EUQAL TO LOWEST CLOSE IN PAST 10 DAYS.
I know it is very simple like this.

Cond = LLV(Ref(C,-1),10) == Ref(C, -1) ;

but it is giving me false data where lowest close is 2,3,4,5,6,7, 8 or 9 bar ago !!!!!
I m confuded .

Regards
Abbas Ali


Inactive hide details for "NW Trader" ---02/25/2010 11:46:18 AM---Hi Abbas, I do not know if the following clues will help; I h"NW Trader" ---02/25/2010 11:46:18 AM---Hi Abbas, I do not know if the following clues will help; I hope so. I can't be certain what it is


From:

"NW Trader" <ta4charts@xxxxxxxxxxx>

To:

<amibroker@xxxxxxxxxxxxxxx>

Date:

02/25/2010 11:46 AM

Subject:

Re: [amibroker] AFL Probs




Hi Abbas,


I do not know if the following clues will help; I hope so. I can't be certain what it is that you are trying to do as your explanation was truncated or incomplete.

LL = LLV(L,10); // This will return the lowest low of the past 10 bars, including the most recent bar and yesterday's bar as well.

LL2 = Ref( LLV( L, 10 ), -2) ; This will return the lowest low of the 10 bars prior to 2 bars ago.

Thus your code is checking to see if yesterday's low is equal to itself (which it will always be). If you want to see if yesterday's low is equal to the lowest low of the 10 bars preceding it, use LL2 stated above.

As to your two prior questions that went unanswered, AFAIK, the title statement can only handle text, not shapes. You can do different colors, values and messages (such as a green "BUY", a yellow "Setup Condition Met", etc.). As to the display in the ticker box, contact AB support as that is beyond my usage and I do not do the Indian markets.

Peace and Justice --- Patrick

      ----- Original Message -----
      From: Abbas Ali Palana
      To: amibroker@xxxxxxxxxxxxxxx
      Sent: Wednesday, February 24, 2010 8:38 PM
      Subject: [amibroker] AFL Probs

      Dear Alls,
      I have posted my 2 queries here but none of them answered !!!!!
      OK fine .
      I m posting one more query here:-

      I want to check if previous day's Low is equal to the lowest low for last ten days
      so i make an AFL like that

      **********************************
      LL = LLV( L , 10);

      Prev_L = Ref(L , -1):

      Cond1 = Prev_L == LL ;

      *************************************
      Now here Cond1 would be true only if Prev day's low is equal to lowest low of last 10 days,

      but when i explore it given me signal wrong singal even i have chked it usign

      I dont knwo it is happening , if some one can guide me where i wrong.

      Regards
      Abbas Ali


.




This e-mail contains information which is confidential and/or legally privileged.If you are not the intended recipient , you are hereby notified that any disclosure, copying,distribution or the taking of any action in reliance on the contents of this e-mail is strictly prohibited. If you have received this e-mail in error, please destroy it and notify us by reply e-mail or by telephone.Internet E-mail messages may be subject to delays, non-delivery and unauthorised alterations and we shall not be responsible for the consequence(s) in such event(s). All reasonable precautions have been taken to ensure no viruses are present in this E-mail. We cannot accept responsibility for loss or damage arising from the use of this E-mail or attachments and recommend that you subject these to your virus checking procedures prior to use.
The information contained in this electronic message and any attachments to this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy
 all copies of this message and any attachments contained in it.



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___