Keith: great idea, thanks.
 
And thanks to the others who offered me the answer to perhaps the most basic
of questions.
 
Someone said: "There are no dumb questions, only those that go unasked."
 
Ken

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Keith McCombs
Sent: Saturday, November 15, 2008 11:45 PM
To: [email protected]
Subject: Re: [amibroker] A Buy without a Sell?


Ken --
I 've developed some fairly complex stop, limit, and stop/limit rules, and
had some of the same experience you describe.
 
The way I handle it is to first calcuclate:  mybuy, mybuyprice, mysell, and
mysellprice arrays and avoid the use of  the 'predefined' arrays, buy,
buyprice, sell, and sellprice till the very end of my code.  Then the last
few statements are:
buy = mybuy;   buyprice=mybuyprice, etc.
 
I believe that problems arise because buyprice is 'predefined' and "defines
buying price array (this array is filled in with the default values
according to the Automatic Analyser settings)"
 
Hope this helps.
-- Keith


 

----- Original Message -----
From: "Ken Close" 
To: [email protected]
Subject: [amibroker] A Buy without a Sell?
Date: Sat, 15 Nov 2008 16:03:14 -0500





Curious and basic:  I have a fairly good entry signal, and want to Buy on
this signal.  I have no Sell signal, only want to follow a stop to take out
the trade.  Initially a percentage stop and then turn it into a trailing
stop.
 
But I can't get around the need for the Sell statement.  As I said, basic.
 
I have tried a BuyP = Valuewhen(Buy, Close,1);
Then Sell = 0.95 * BPrice < L; 
 
But while I see some places where this works, I see lots of other places
where it did not.  Puzzling.
 
Anyone got a simple way to Buy on a signal and then ONLY sell on violation
of a stop?
 
Thanks,
Ken




-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com <http://www.mail.com/Product.aspx> !
 

Reply via email to