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

[amibroker] Scaling In/Averaging Down



PureBytes Links

Trading Reference Links

I'm confused about how scaling in works.  I've read the section in the
user guide on this, but I haven't been able to apply the examples to
what I want to do.  I would like to test trading as follows:

-- Buy one contract immediately on my first signal
-- Buy another contract if I'm still getting a buy signal, but the
price has fallen to a certain level.
-- Buy another contract if I'm still getting a buy signal, but the
price has fallen to an even lower level.

I know it can be tested, I just can't figure out how to do it based on
the examples in the user guide.  Am I on the right track with
something like this?

Buy=IIf(MA20>MA30,1,IIf(MA20>MA30 AND L<=s1,sigScaleIn,IIf(MA20>MA30
AND L<s2,sigScalein,0))); 

How does setpositionsize impact this?  I mean it sounds like
setpositionsize is used to determine the incremental purchase, but how
do you set the maximum number of contracts to buy?

TIA
Chuck



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
 
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:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto: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/