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

[amibroker] Re: allow same bar exit



PureBytes Links

Trading Reference Links

great, thanks

--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> Ed, you can create your own custom chart
> 
> Plot(c,"price",colorblack,stylecandle);
> Plotshapes(buy*shapeuparrow,colorgreen,0,L,-10);
> Plotshapes(sell*shapeuparrow,colorred,0,H,10);
> 
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia 
> 
> -----Original Message-----
> From: ed2000nl [mailto:pablito@x...] 
> Sent: Saturday, 1 November 2003 5:10 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: allow same bar exit
> 
> 
> OK I found I need to use "activate stops immidiately". I think this 
> works.
> 
> One other thing:
> 
> using the code shown below. Is there a way I can get the "sell" 
> and "sellprice" arrays so that I can make my own charts instead of 
> using the default price chart with the default signals? Since 
> ApplyStop handles all this stuff internally I wonder how I can get 
> access to these arrays.
> 
> thanks, Ed
> 
> 
> 
> SetTradeDelays(1,0,1,0);
>  
> Buy = Perc_Threshold_Long(Close,10) AND V>100000;
> BuyPrice = Open;
>  
> ApplyStop(stopTypeProfit, stopModePercent, 1); ApplyStop
(stopTypeLoss,
> stopModePercent, 30); ApplyStop(stopTypeNBar, stopModeBars, 40);
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "ed2000nl" <pablito@xxxx> wrote:
> > hi,
> > 
> > I set SetTradeDelays(1,0,1,0). Also in settings I allow "Allow 
same
> > bar exit (single bar trade). Still, the setup shown below does 
not 
> > exit the same day after a purchase at the "open". I checked this 
> > using "show arrows for actual trades" and also in the backtest I 
> can 
> > see it is only exiting the next day at the soonest.
> > 
> > What am I doing wrong?
> > 
> > thanks, Ed
> > 
> > 
> > 
> > 
> > SetTradeDelays(1,0,1,0);
> > 
> > Buy = Perc_Threshold_Long(Close,10) AND V>100000;
> > BuyPrice = Open;
> > 
> > ApplyStop(stopTypeProfit, stopModePercent, 1); ApplyStop
(stopTypeLoss, 
> > stopModePercent, 30); ApplyStop(stopTypeNBar, stopModeBars, 40);
> 
> 
> 
> 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 
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/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 

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