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

RE: [amibroker] Re: Multi Monitor Layout - Remote Desktop



PureBytes Links

Trading Reference Links

I've been playing around with the for loop optimization done under 
exploration from a prior 2003 post... 

Wondering how I would add the following criteria to the optimized 
exploration in this fashion:

1.  Only display securities which have >10 trades in the time period 
analyzed

2.  Only display securities which have >50% winning trades

3.  Write a column showing maxDD.

Any ideas?  Code follows:

************************************

bestequity = 0;
bestrange = 0;

// optimization loop

for( range = 5; range < 100; range ++ )
{

  Buy = Cross( Close, MA( Close, range ) );

  Sell = Cross( MA( Close, range ), Close );

 Le = LastValue( Equity() );

  if( Le > bestequity )
  { 
   bestequity = Le;
   bestrange = range;
 }
}

range = bestrange;

Buy = Cross( Close, MA( Close, range ) );

Sell = Cross( MA( Close, range ), Close );

Filter = (BarIndex() == BarCount - 1) AND Equity()>14000;

AddColumn( bestrange, "Best range" );

AddColumn( Equity(), "Best Equity" );




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/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/