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

Re: [amibroker] Sell Conditions


  • Date: Sat, 16 Jan 2010 09:29:09 -0500
  • From: "Anthony Faragasso" <ajf1111@xxxxxxxx>
  • Subject: Re: [amibroker] Sell Conditions

PureBytes Links

Trading Reference Links



Maybe;

Sell=IIf(Buy==a>b,b>a , IIf(Buy==C1>d,d>C1,Null));

----- Original Message -----
Sent: Saturday, January 16, 2010 8:50 AM
Subject: [amibroker] Sell Conditions

 

Suppose my buy conditions are something like

buy = a>b or c>d;

How can I set up my sell condition so that if I bought on the condition of a>b, then I would sell on the condition of b>a. Or, if I bought on the condition of c>d, how can I ensure that I sell on the condition of d>c, regardless of how a and b relate?

If I have the statement below, then I am looking at more variables then I want

sell = b>a or d<c;

Most likely a is already greater than b, or c is already greater tahn d, so this trade will only last one day. I want to stay in until the condition triggering the buy expires.

It seems like I should be able to put a boolean in front of each, but I am not sure how to do that. I guess the array aspect of prices is confusing me

Thanks in advance,
RB



__._,_.___


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

__,_._,___