PureBytes Links
Trading Reference Links
|
You can use "Foreign" to refer to what happens with the SP500.
Ex.
BASE=Foreign("^GSPC","C",1); //^GSPC is Yahoo!'s symbol for SP500
Buy=Cross(BASE,EMA(BASE,200)); //Buy on SP500 cross above 200 EMA
Sell=Cross(EMA(BASE,200),BASE); //Sell on SP500 cross below 200 EMA
Sebastian
--- In amibroker@xxxxxxxxxxxxxxx, Nick de Peyster <nickdepeyster@xxx> wrote:
>
> I can't figure out how to model the following S&P 500 system in AB:
>
> BUY = If currently a SELL then buy if S&P>200 day moving average
>
>
>
>
>
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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/
|