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 -- Ignore unavailable to you. Want to Upgrade?


To: big run who wrote (8689)2/19/1999 5:44:00 AM
From: bdog  Respond to of 11149
 
big run, yes and yes.

the setup is the //prescan req and the //params...change to your setup

entry x days would be done by changing the x in the following code to the days you want

exit time limit of X can also be changed to any number of days after x...remember to change the stop day in the loop to allow for this as you dont want it to look past 0 day...

/backtest output
//buy @ open x day, sell @ open in X days after
if mbtest =1 then
println symbol:-8,date(md1+x):10,open(md1+x):8:3,open(md1+X):8:3,
(open(md1+X)-open(md1+x))/open(md1+x):8:2,"day b4 qrs=":15,qrs(md1);
endif;

::note that I use an [m] in front of all variables so md1 refers to memoryvariable day (or bar) one...

to spec an exit per a set of parameters another loop would have to be introduced...

have fun, let me know how it goes
bdog