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

[amibroker] Re: KASE PeakOscillator



PureBytes Links

Trading Reference Links

Hello,

yes that's perfect.
Thanks

Stephane

> 
> I'm not completely sure, but, I think this will work for you;
> NumContracts = 100;
> 
> PositionSize = Min((NumContracts * MarginDeposit),Equity());
> 
> 
> 
> Greg
> 
> 
>   ----- Original Message ----- 
>   From: Greg 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Monday, March 29, 2004 9:41 PM
>   Subject: Re: [amibroker] Max number of contracts to trade
> 
> 
>   Stephane,
> 
>   This might be part of the puzzle. I think you will need to 
include the following.
> 
>   NumContracts = 100;
> 
>   PositionSize = Max((NumContracts * MarginDeposit),-100);
> 
>   Good luck,
> 
>   Greg
>     ----- Original Message ----- 
>     From: Stephane Carrasset 
>     To: amibroker@xxxxxxxxxxxxxxx 
>     Sent: Monday, March 29, 2004 4:56 PM
>     Subject: [amibroker] Max number of contracts to trade
> 
> 
>     Hello,
> 
>     Have you an idea how to set  the maximum of contracts to trade
>     for example I have a system, it buys or sells a number of 
contracts according to 100% of the equity
>     but I want that the maximum of contracts will be 100.
>     because the results becomes unrealistic when the system trades 
> 4000 contracts.
> 
>     MarginDeposit = 3500;
> 
>     RoundLotSize = 1;
> 
>     PointValue = 10;
> 
>     PositionSize=Max(NumberContracts=100,-100/*100% Equity*/);// 
not work
> 
> 
> 
>     Stephane
> 
> 
> 
>     Send BUG REPORTS to bugs@xxxx
>     Send SUGGESTIONS to suggest@xxxx
>     -----------------------------------------
>     Post AmiQuote-related messages ONLY to: 
amiquote@xxxxxxxxxxxxxxx 
>     (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>     --------------------------------------------
>     Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> 
> 
> 
>     Send BUG REPORTS to bugs@xxxx
>     Send SUGGESTIONS to suggest@xxxx
>     -----------------------------------------
>     Post AmiQuote-related messages ONLY to: 
amiquote@xxxxxxxxxxxxxxx 
>     (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>     --------------------------------------------
>     Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> 
> 
> --------------------------------------------------------------------
--------
>     Yahoo! Groups Links
> 
>       a.. To visit your group on the web, go to:
>       http://groups.yahoo.com/group/amibroker/
>         
>       b.. To unsubscribe from this group, send an email to:
>       amibroker-unsubscribe@xxxxxxxxxxxxxxx
>         
>       c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of Service.



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/