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

Re: [amibroker] Re: How Limit the BUY( 2nd TIME ) [1 Attachment]


  • Date: Thu, 17 Dec 2009 22:35:36 -0500
  • From: Yves <yltech@xxxxxxxxxxxx>
  • Subject: Re: [amibroker] Re: How Limit the BUY( 2nd TIME ) [1 Attachment]

PureBytes Links

Trading Reference Links

[Attachment(s) from Yves included below]

Thank four your new formula
Look the difference between the OLD and the NEW(with your modification)
 
Great Thank
 
Merci
 
YLTech ( Yves L. )
 
Le présent message et les documents qui y sont joints sont réservés exclusivement au destinataire indiqué. Il est strictement interdit d'en utiliser ou d'en divulguer le contenu. Si vous recevez le présent message par erreur, veuillez le détruire S.V.P. et nous en aviser immédiatement afin que nous puissions corriger nos dossiers. Merci.
 
This message and the attached documents may contain privileged or confidential information that are intended to the addressee only. Any unauthorized disclosure is strictly prohibited. If you happen to receive this message by error, please delete it and notify us immediately so that we may correct our internal records. Thank you.
 
yltech@xxxxxxxxxxxx
----- Original Message -----
From: Mike
Sent: Thursday, December 17, 2009 1:59 AM
Subject: [amibroker] Re: How Limit the BUY( 2nd TIME )

 

You need to remove the redundent signals from Cond1. Also, there's no need for IIF in your function.


function C_Over( Price, Bas )
{
    
return Price > Bas;
}

Cond1 = C_Over(
C, 1.70 ) ; // Price over $1.70
Cond1 =
ExRem( Cond1, !Cond1 ); // Remove redundent signals
BarsSinceCond1 =
BarsSince( Cond1 );
Cond_Lim =
IIf( BarsSinceCond1 < 10, 0.5, 0 );

Plot( Close, "Price", colorDarkGrey, styleBar | styleOwnScale );
Plot( Cond1, "Cond1", colorRed );
Plot( Cond_Lim, "Lim", colorBlue );
Plot( BarsSinceCond1, "Bars", colorGreen, styleStaircase | styleNoLabel );

Mike

--- In amibroker@xxxxxxxxxps.com, Yves <yltech@xxx> wrote:
>
> I'm write a complex fonction and the result give a long area to BUY it.
> How limited the AREA at 10 period?
>
> Below, I'm write around the same function( C_Over )
> How LIMIT the BUY( Cond_Lim ) for only the first 10 period ?
> With BarsSince ?
>
> Thank
>
> YLTech
>
>
> --------------------------------------------------------------------------------
>
> function C_Over(Price,Bas)
>
> { // This function give when price is over $1.70
>
> {Cond= IIf(Price>Bas,1,0) ; } ;
>
> return Cond ;
>
> } ;
>
> Cond1= C_Over(C,1.7) ; // Price over $1.70
>
> Plot(Cond1," ",colorRed );
>
> Cond_Lim= IIf(BarsSince(Cond1)<10,0.5,0) ; // ???????????
>
> Plot(Cond_Lim," ",colorBlue );
>
>
> --------------------------------------------------------------------------------
>
>
>
> Merci
>
> YLTech ( Yves L. )
>
> Le présent message et les documents qui y sont joints sont réservés exclusivement au destinataire indiqué. Il est strictement interdit d'en utiliser ou d'en divulguer le contenu. Si vous recevez le présent message par erreur, veuillez le détruire S.V.P. et nous en aviser immédiatement afin que nous puissions corriger nos dossiers. Merci.
>
> This message and the attached documents may contain privileged or confidential information that are intended to the addressee only. Any unauthorized disclosure is strictly prohibited. If you happen to receive this message by error, please delete it and notify us immediately so that we may correct our internal records. Thank you.
>
> yltech@xxx
>


Attachment(s) from Yves

1 of 1 Photo(s)


__._,_.___


**** 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

__,_._,___