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
Stop Loss for the N-first Trading Bars only
Volume Accumulation Trend Line
Volume Trend Index - Market Indicator
Euronext Amsterdam - Historical Quotes

How-to Lessons
How to run a screen or a watchlist from a script
How to create a correlation matrix of several securities
How to add a trading indicator to a chart
How to import trading data from CSV files
How to add a metric in the trading system simulation report

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
Money Management: Scale-in Trading Strategy
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.