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

[amibroker] Re: Position Size Question



PureBytes Links

Trading Reference Links

Ok, Now that I am thinking this through...is PositionSize an array or
a scalar? In other words can I do something like this:

PositionSize = IIF(condition is true,-100,-50);
 
Or do I need to set the PositionSize value in a loop where the Buy's
are set?

Jack

--- In amibroker@xxxxxxxxxxxxxxx, "Thomas Z." <tzg@xxx> wrote:
>
> Hello,
> 
> basically you can set it for every bar(entry) separately.
> 
> Thomas
> www.PatternExplorer.com
> 
> 
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of slipthruthecracks
> Sent: Tuesday, July 29, 2008 7:01 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Position Size Question
> 
> Can position size be set for each individual entry if I am doing a
> loop such as:
> 
> For each bar in the array
> if buy[i]
> If x is true
> Positionsize = -100
> otherwise
> Positionsize = -50
> 
> Or can it only be set once for the BT run?
> 
> One-Eyed-Jack
>



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

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/