Click here to Login





                                                   Setsimtiming -- Buy signal day open and sell signal day close

  0

0
Jaime Mauro
2018-01-15 20:16:51


Good Day,

Contrary to certain documentation, there are real life situations where it may be possible to buy signal day open, IF the signal IS the open price itself.

If for example I want to BUY a stock that opens down 5%, then sell the close of that day, can you show me how to set up a strategy to do that. My signal is simply that stock opens down 5% from
yesterday's closing price. I want to look at performance from that open to that day's close. I am using EOD data. It is conceivable that I could set resting orders to buy at minimum of 5% below previous
close for a watchlist of symbols.

Thanks.

JM



QuantShare
2018-01-16 04:33:18

  0

For that, the best way is to reference the next bar's open. Example:

buy = open[-1] < 0.95*close;
sell = 1;
SetSimTiming(_Buy, _Open, 0);
SetSimTiming(_Sell, _Close, -1);



Jaime Mauro
2018-01-16 11:39:03

  0

Thank you so much....! Trying to create basic buy and sell and short and cover rules for re-use based on signal day open to signal day close, signal day close to NEXT DAY open, signal day close to NEXT DAY close, signal day NEXT DAY open to signal day NEXT DAY close and this helps. Much obliged. The timing configurations seem touchy and require patience in my initial forays.


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
Buy signal watchlist And Buy signal on your Chart (Red Spot)
Simple pattern detection rules using close and open prices
LSS Pivotal Buy and Sell Numbers - Trend Reaction
Day of week and Week number function
Drawdown Since Trading Signal

How-to Lessons
How to plot the number of stock tweets per day
How to display the number of stocks per day for different RSI gro...
How to download and use U.S. stocks earnings data
How to speed up watchlist and screener plug-ins when working with...
How to save and restore charts

Related Forum Threads
Backtest Buy Open/Sell Close Every Day
Selling according to the buy day data
Previous day high and low in in intraday chart
Buy and Sell rules combination in Optimizer.
Plot Up/Down Arrows corresponding to buy and sell signals

Blog Posts
How to get buy and sell orders for a portfolio based on a trading...
Day Trading: A trading system that combines intraday and EOD data
How to create buy and sell trading rules based on News Data
Trading System: Moving average crossover and few others buy and s...
How To Create and Backtest an S&P 500 Trend Following System









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.