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 display two stocks on the same chart
How to download and use U.S. stocks earnings data
How to display notes/commentaries on a chart
How to associate an index with a list of stocks

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
Ranking System Engine
How to Backtest a Strategy from a Chart
Sentiment Analysis: How to measure the sentiment score of your st...
Money Management: Scale-in Trading Strategy
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.