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

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



PureBytes Links

Trading Reference Links


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






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/