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

Re: [amibroker] Re: Amibroker -> Plot Trailing Stop Level



PureBytes Links

Trading Reference Links

Stephane,
Did you see my post from yesterday or did it get buried? If you have 
a chance to respond, I'd appreciate it because I'm evidedntly very 
confused about how to handle timeframes.

Merci,
Dan

--- In amibroker@xxxxxxxxxxxxxxx, "danielwardadams" 
<danielwardadams@xxxx> wrote:
> Stephane,
> A couple of weeks ago you sent me some code to trail a stop after a 
> certain percent profit had been reached. I'm still struggling 
trying 
> to backtest using EOD Buy signals but exiting on intraday trailing 
> stops (after some profit %).
> 
> In all of your trailing stop code (I've looked at Rem.dll too), you 
> have lot of "for (i=0; i< Barcount; i++)" statements. If my 
backtest 
> periodicity is set to 1 minute (so presumably "i" is counting in 
> minutes), how do I look at EOD data within (or prior to) your code? 
> When changing periodocities, do you have to modify the value 
of "i"? 
> My base interval is 1 minute data.
> 
> If I understood this, maybe I'd have a breakthrough in my 
> understanding of timeframes. I've read the timeframe tutorial 
section 
> many times but still can't ever get things to work.
> 
> TIA,
> Dan



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