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

[amibroker] Sell Conditions


  • Date: Sat, 16 Jan 2010 13:50:28 -0000
  • From: "bacu_robert" <bacu_robert@xxxxxxxxx>
  • Subject: [amibroker] Sell Conditions

PureBytes Links

Trading Reference Links

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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    amibroker-digest@xxxxxxxxxxxxxxx 
    amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/