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

[amibroker] Re: forward/backward shifted MA



PureBytes Links

Trading Reference Links




hi,
 
I did not look into it in detail but I can say 
right now is that this system is not possible. The buy signal will not enable 
you to buy the same day as the signal with respect to the open price. At best 
you could buy the same day at the close since RSI is based on close 
prices.
 
So if you get a buy signal you could buy the next 
day at -2.95% from the previous days close price. Same with the sell signal. 
Once you get this signal you could at best sell at the close price on the day 
you receive the signal. Otherwise you will have to find an exit point the next 
day.
 
rgds, Ed 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=tessaglia@xxxxxxxxxxx 
  href="">chassis_73 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, May 23, 2004 10:32 AM
  Subject: [amibroker] Sellprice/Applystop 
  problem
  Hi,mates.I'm going crazy about a problem that troubles al 
  my TS.SystemBuy = Cross( RSI(14), 30 );Sell = Cross( 70, 
  RSI(14) );BuyPrice=O*0.9705;//Buy when the stock goes down -2.95% from 
  Open.SetTradeDelays(0,0,0,0);ApplyStop(stopTypeLoss,stopModePercent,2.15,1);ApplyStop(stopTypeProfit,stopModePercent,3,1);ObjectiveI'd 
  like to buy the stock all the days it goes down till about -2.95 % from 
  open.I'd like to sell when Sell = Cross( 70, RSI(14) ) occurs or when i 
  can take profit about 3% from Buyprice.TroublesNo trouble 
  about Buy.It works perfectly.Sell instead has its logic but there's a 
  wrong situation when it's a black candle day.i.d  O 2.42 H 2.42 L 
  2.32 C 2.32 What happens here?Naturally I buy at 2.35 and IN THE SAME DAY 
  i sell at 2.42 to take profit.Obviously it's not possible because the 
  stock went down till 2.32 and I'm losing in fact.Let us suppose that 
  the day after O 2.31 H 2.44 L 2.31 C 2.42 .I 'd like to take my 3% when 
  the stock cross up 2.42 the day after.In the backtest there are a lot of 
  days like this so results are wrong.Naturally I tried many rules but 
  Applystop always prevails over all.Immediate IF function doesn't 
  work.i.d.IIf(C < 
  O,ApplyStop(stopTypeProfit,stopModeDisable,3,1),ApplyStop(stopTypeProfit,stopModePercent,3,1));Has 
  anyone had the same trouble?Best 
  regards,NickSend BUG REPORTS to 
  bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


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 the Yahoo! Terms of Service.