Click here to Login





                                                   Loop in stategy possibility

  0

0
Dennis Schutten
2016-03-12 09:25:16


Hi,

I have multiple external signals which are imported from ascii files.

I have this code below which is working. Is there a method in which the strategy loops through a list of external signals names called : naam ?

Otherwise I have to make a strategy for each individual external signal.

naam="SP_90-102";
// Buy rules

Rule1 = (GetSeries(naam, Close)) > (0);
buy = (Rule1);

// Sell rules

Rule2 = (GetSeries(naam, Close)) <= (0);
sell = (Rule2);

// Short rules

Rule3 = (GetSeries(naam, Close)) < (0);
short = (Rule3);

// Cover rules

Rule4 = (GetSeries(naam, Close)) >= (0);
cover = (Rule4);



QuantShare
2016-03-14 04:05:04

  0

You could do that (loops through a list of external signal names) using the money management script only.


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
High to low stock pattern for the close price
Volume Accumulation Trend Line
Volume Trend Index - Market Indicator
Euronext Amsterdam - Historical Quotes
Fails to deliver - Reported by the SEC

How-to Lessons
How to run a screen or a watchlist from a script
How to automatically start a downloader every few minutes?
How to quickly download the most recent EOD data for your stocks
How to optimize the number of positions in a trading system
How to export trading data to a CSV file

Related Forum Threads
Backtest/Optimizing speed vs Size of Database & Vector vs loo...
Auto trading?
Looping within a screener and how to use RemoveSameSignals
Custom index/relative chart for TAA - Sector rotation
Best Practice to Evaluate Different Asset Performances

Blog Posts
Statistical data analysis of time series
How to Calculate and Display the Bid/Ask Spread on a Chart
Download quotes, news, sentiment, fundamental... data using Quant...
Custom Indicator: Accumulation Distribution Line
Step by step on how to get free realtime/delayed data for stocks,...









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 © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.