Click here to Login








Trading Strategy based on the Number of Buy Signals

by QuantShare, 5042 days ago
Share |






Based on the number of buy signals, this money management script calculates its 10-Bar moving average and compares it to the 50-Bar moving average. If the former moving average is lower than 0.4 times the latter moving average, then trading is halted during the next 30 trading bars.

The number of buy signals refers to the number of times there was a buy signal in a specific bar. This number is higher than the actual trades because the portfolio is limited in the number of positions it can take at the same time.

In order to calculate the moving average, I have created a list (buySignals) and added to it the new number of buy signals each time the OnEndPeriod event is called (on each new bar). Within this event, I have also created a time-series metric called "Buy Signals Average", which is the 10-Bar simple moving average of the number of buy signals.

This money management script is simply an example to show you how to use trading signals (not actual trades) in a trading strategy and create rules based on them.

To get the raw number of buy signals, go to: Number of Buy Signals Over Time in a Simulation.


Share This ->
Share |


You have to log in to bookmark this object
What is this?




Type: Advanced Money Management

Object ID: 921


Country:
All

Market: All

Style:
All

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects

Empty

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

Download Trading Data using the Pre-Script

Download Trading Data using the URL-Script

Trading Items: Data Download using .Net Scripts

Adding Trading Indicators and Formulas to a Chart

How to Download and Use Fundamental Data

QuantShare Version 2.1.2 - Trading Software

Automated Parsing in QS Trading Software

How to Create a List of Ticker Symbols

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






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.