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

Re: [amibroker] Re: Tomasz : A feature request about margins



PureBytes Links

Trading Reference Links

Hello,

I think you just have 'margin account' (required for trading shorts, btw).
In such case go to the settings page and enter the maximum margin
that your brokerage allows into "Margin Requirement" field.

Then use PositionSize variable to modify exact size of the trade on
trade-by-trade basis.
Remember that negative values of position value represent the percentage of your equity
(including what you borrow from your broker).

Then you can use the following

PositionSize = IIF( buy, -50, -80); // if buy (long) use only 50% of your buying power, if short use 80%

More information:
Users Guide:  System test settings window

Best regards,
Tomasz Janeczko
amibroker.com

----- Original Message ----- 
From: "Email" <romadd64@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, August 19, 2003 12:34 PM
Subject: [amibroker] Re: Tomasz : A feature request about margins


> CS,
> 
> I was asking to have different margins for long and short positions. 
> how can I set it ?
> 
> Regards, romadd64
>  
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "CS" <res1wgwl@xxxx> wrote:
> > Already exists.
> > Go to Symbol>Information.
> > Or...
> > Use MarginDeposit in your formula.
> > 
> > -CS
> >   ----- Original Message ----- 
> >   From: Email 
> >   To: amibroker@xxxxxxxxxxxxxxx 
> >   Sent: Monday, August 18, 2003 5:04 PM
> >   Subject: [amibroker] Tomasz : A feature request about margins
> > 
> > 
> >   Hi Tomasz,
> >   as you can see i'm working hard to keep you very busy ;)
> > 
> >   My online broker now permit to go short also for stocks, using 
> >   margins. So for long position there is no margins (or better, 
> margin 
> >   = 100%), but for short position there are margins. Furthermore, 
> there 
> >   are different short margins for different stocks (some 50%, 
> others 
> >   70%, and so on...)
> > 
> >   Can you add the feature to have different margins for long/short 
> >   positions ?
> > 
> >   Thanks, romadd64.
> > 
> > 
> >         Yahoo! Groups Sponsor 
> >               ADVERTISEMENT
> >              
> >        
> >        
> > 
> >   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 
> > 
> >   Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> Service.
> 
> 
> 
> 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 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
>

------------------------ 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/l.m7sD/LIdGAA/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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/