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

Re: [amibroker] Changing RoundLotSize on the fly



PureBytes Links

Trading Reference Links

try using some If statements
something like this for starters, don't know off hand if a for loop
would be required
e=equity(1);
if( e<100000) roundlotsize=100;
if( e>=100000 and e<1000000) roundlotsize=1000 ;
if( e>=1000000) roundlotsize=10000;

On 9/1/05, eric paradis <thechemistrybetweenus@xxxxxxxxx> wrote:
> Hi,
> 
> Can anyone suggest how to code a rule for setting
> RoundLotSize so that when the Equity reachs 100k,
> RoundLotSize gets set to 1000 shares, when 1mil,
> RoundLotSize get set to 10000 shares, and so on.
> 
> Much appreciated.
> 
> Eric
> 
> 
> 
> 
> 
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
> 
> 
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Put more honey in your pocket. (money matters made easy).
http://us.click.yahoo.com/r7D80C/dlQLAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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