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

[amibroker] Re: Optimize a list of symbols?



PureBytes Links

Trading Reference Links

Is this what you are trying to do?

whichIndex = Optimize("whichIndex1",  1, 1, 5, 1);

if (whichIndex == 1)
  indexPrice = Foreign("^RUT", "C");
else if (whichIndex == 2)
  indexPrice = Foreign("^DJI", "C");
else if (whichIndex == 3)
  indexPrice = Foreign("^IXIC", "C");
else if (whichIndex == 4)
  indexPrice = Foreign("^GSPC", "C");
else if (whichIndex == 5)
  indexPrice = Foreign("^MID", "C");

--- In amibroker@xxxxxxxxxxxxxxx, "blakerandy" <BlakeRandy@xxx> wrote:
>
> I'm not sure I explained myself properly in the previous post.
> 
> My system backtest is done using a list of the SP500.
> 
> I want to come up with a method to optimize just the permission filter
> portion using different market symbols ie:(^DJI , ^GSPC, ^IXIC)
> 
> I figured this could possibly be done using a watch list, but I can't
> figure out how.
> 
> Thanks, Randy
>



------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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