SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: ED_L who wrote (9740)7/11/1999 10:50:00 AM
From: Alain Joaris   of 11149
 
Depending on what you intend to backtest, you may go for a general loop under the form of:

start:=-1200;
finish:=-550;

for enterbar = start to finish step 1 do
if "Conditions to enter" then
print symbol,date(enterbar),open(enterbar+1);
for exitbar = enterbar+1 to finish step 1 do
if "Conditions to exit" then
print date(exitbar),open(exitbar+1);
endif;
enterbar:=finish;
next exitbar;
println;
endif;
// if you don't want multiple entry signal for the same ticker
enterbar:=finish;
next enterbar;

But if you want to do more, you need to include another layer such as dos, winbatch or any other programming language you're comfortable with.
I am working on a three-tier approach: 1) selected list of stocks based on price, sector, volume and volatility; 2) a setup condition; 3) a confirmation signal based on bollinger bands and comparison of indicators between 2) and 3).
If you want to handle such a process, you will need more than a QP scan, since you can only retrieve the symbol from the *.lst file and for my backtests I need volume, price and some others as well. I think that they are planning to include such features in the future, let's hope.

Alain Joaris
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext