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

[amibroker] Need a loop ?



PureBytes Links

Trading Reference Links

I have a mental block to sort this one out.

The optimization of this simple formulae leads to one outcome only 
(so all parameters give the same results in net profit terms):

pnt=80;
pnt1=50;
Optimize("pnt1",pnt1,30,50,1);
Optimize("pnt",pnt,1,30,1);
Buy=Cross(StochD(pnt),StochK(pnt1));
Short=Cross(StochK(pnt1),StochD(pnt));
Sell=Short;
Cover=Buy;
Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy); Short=ExRem
(Short,Cover);Cover=ExRem(Cover,Short);

The answer is probably very simple but I have for the time being a 
blind spot.

Willem jan



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/