Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   How to trade one symbol based on indicators of another?

  0

0
saratur
2011-01-17 08:42:19


... A basic question: How do I build a trading system, and/or a set of trading rules, where indicators and operations on indicators of one symbol trigger trades of another symbol?

For example, buy INTC if the ^NDX rsi(14) crosses above 20, or buy QQQQ if ^GSPC crosses above its upper bollinger band?



QuantShare
2011-01-17 09:29:11

  0

Best Answer
- Buy a security if the ^NDX rsi(14) crosses above 20

a = GetSeries("^NDX", close);
buy = cross(Rsi(a, 14), 20);

If you want to buy only INTC:

a = GetSeries("^NDX", close);
buy = cross(Rsi(a, 14), 20) AND StringEqual(Name(), "INTC");

Or you can use the Advanced Money Management Tool.

- Buy a security if ^GSPC crosses above its upper bollinger band

a = GetSeries("^GSPC", close);
buy = cross(a, BbandsUpper(a, 20, 2, _MaSma));



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Market Rule based on the Crossover Between Stock Close prices and...
Trade Weighted Exchange Index
Adaptive Trading Indicator based on the Return of Past Trades
Money management to Reject Trading Positions Based on their Past ...
Trading Strategy based on the Number of Buy Signals

How-to Lessons
How to drag & drop indicators in charts
How to create and trade a Neural Network model
How to quickly select stocks based on the last value of a databas...
How to create trading rules based on Put and Call volume data
How to rename a ticker symbol

Related Forum Threads
How do I refer to the close price of another symbol in a formula?
Can one add a vector of price and trade signals and get a backtes...
how to download nifty50 chart?
How to work with vectors?
symbol changes

Blog Posts
How to predict and trade the stock market using pivot points
How to create buy and sell trading rules based on News Data
Buy the best/top rated stocks or how to create powerful rank base...
How to turn any ordinary trading strategy into a very profitable ...
How to create market indicators using the composite function - Pa...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items