[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Another dumb newbie question - checking the high price



PureBytes Links

Trading Reference Links

Use Cross(0.50,C)


On Thu, 03 Feb 2005 02:03:55 -0000, mikelaurataylor
<mikelaurataylor@xxxxxxxxx> wrote:
> 
> 
> Assume that I have created a system that issues a buy order as I'm
> expecting it to go up, at which point I'll issue the sell.
> 
> How would I go about adding a condition in the system that ends up
> creating a stop order in case I'm wrong.
> 
> For instance, suppose I want to sell if the price drops .50 below
> the buy.    I figure I can change my sell formula to be:
> 
> sell =  (the original sell forumla)  OR  (if current price < buy
> price - .50)
> 
> I just don't know how to write the 2nd part of this (if current
> price < buy price - .50).   I think I could get the rest but I'm not
> sure what to use to identify the buy price.
> 
> Thanks again.  Hopefully I'll be helping answer questions soon!
> 
> Mike
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/