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

[amibroker] Re: Pyramiding / ScaleIn Questions


  • Date: Wed, 17 Feb 2010 02:33:25 -0000
  • From: "Mike" <sfclimbers@xxxxxxxxx>
  • Subject: [amibroker] Re: Pyramiding / ScaleIn Questions

PureBytes Links

Trading Reference Links

Hi,

I posted some code to a related question here:
http://finance.groups.yahoo.com/group/amibroker/message/146956

Short answers:
1. Use Flip function to capture current position "state".
2. Use state captured above AND'ed with next criteria.

See if that helps.

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "longt3rm" <longt3rm@xxx> wrote:
>
> Hello,
> 
> Goal Description: 
> 1) Initial $500 position opened when RSI(2) < 25
> 2) Add $1000 to position when entry price for #1 is less than current close. (regardless of value for RSI(2))
> 3) Add $1500 to position when entry price for #2 is less than current close. (regardless of value for RSI(2))
> 4) If all three positions are entered, we would have a total position of $3,000
> 
> 
> Two questions / problems:
> 1) What is the most efficient way to determine if we have a position and if we do, is it the first ($500) or second ($500+$1000=$1500)?
> 2) If the initial buy is "Buy = RSI(2)", how do we tell AmiBroker that RSI(2) is not longer needed, we just need current close > last position entry price.
> 
> Thanks for any suggestions.
> 
> Sincerely,
> 
> 
> Bill
>




------------------------------------

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