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

Re: [amibroker] applystop() function



PureBytes Links

Trading Reference Links

Greetings --

Or, you might write the code using a loop so you can control the price level of your exit.

Thanks,
Howard


On Wed, Oct 15, 2008 at 7:11 PM, Christy Wagner <eric.w.wagner@xxxxxx> wrote:

I am trying to use this function as a trailing stop.

ApplyStop(stopTypeTrailing, stopModePoint, LLV(L,21)+0.07,1);

I want it to reference the llv(l,21) instead of the entry point. How
do I do that?

In other words I want my trailing stop to be the lowest low of the
past 21 days +0.07 and as the market moves in my favor this will also
increase. So it will be dynamic. If I simply put 0.07 in the
"amount" field I will exit my entry point + 0.07. If I put llv(l,21)
+0.07 in the "amount" field it won't trigger because it is taking the
llv(l,21) + 0.07 and adding to my entry point, which will never get hit.

Is there a way to have this function reference another level to
add/subtract the "amount" field other than the entry point?

Eric


__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___