| 
 PureBytes Links 
Trading Reference Links 
 | 
Greetings
I am trying to write a formula that will generate buy signals based 
on two criteria:
1) the increase of the daily stochastic k line
 
2) the increase of the 15 minute stochastic k line within that 
particular day.
Here is what I have:
QHSchIncrs = Optimize("QHSchIncrs",5,5,20,2);
QHS = (StochK( 14, 3 ) - Ref( StochK( 14, 3 ), -1 )) > QHSchIncrs;
TimeFrameSet( inDaily ); // switch now to Daily
DSchIncrs = Optimize("DSchIncrs",15,5,20,2);
DS = (StochK( 14, 3 ) - Ref( StochK( 14, 3 ), -1 )) > DSchIncrs;
TimeFrameRestore();
TimeFrameExpand( StochK( 14, 3 ), in15Minute);
Buy = DS AND QHS;
/* Max Loss Stop*/
LsPct = Optimize("Loss Percent",4,1,10,1);
PftPct = Optimize("Profit Percent",9,1,10,1);
 
ApplyStop( stopTypeLoss, stopModePercent, LsPct, exitatstop=2, 
volatile = False, ReEntryDelay = 3 );
ApplyStop( stopTypeProfit, stopModePercent, PftPct, exitatstop=2, 
volatile = False, ReEntryDelay = 3 );
Sell = High >  100;
This Doesn't work. Any Suggestions?
Thanks
tvolume
------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 
Check AmiBroker web page at:
http://www.amibroker.com/
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/
 
 |