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

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



PureBytes Links

Trading Reference Links


> 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:

Tell me if I'm belittling you here, but the above is called a "stop".
 There are a good number types of stops, just google trading stops or
something and you'll find lots of stuff.

Now, AB does allow you to easily impose the stops you want, through
the use of the Applystop() function.  Using the Applystop function
allows you to (a) have stops in your trading systems, without (b)
adding tons of code to your sell conditions.

Try:
Applystop(stopTypeLoss, stopModePoint, 0.50, 2);

- chris





------------------------ 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/