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

[amibroker] ApplyStop depending on days passed



PureBytes Links

Trading Reference Links


Good day,

I have a question with ApplyStop. 
I would like to test Profit Targets depending on how many days have 
passed in the trade. This is because the 6% Profit Stop is fine for 
the first day, but on the 2nd or 3rd day only a 3% Profit might be 
available, but not a 6%. The idea is, to lower the profit target as 
the trade matures. 

So far, I have:

ApplyStop (stopTypeProfit, stopModePercent, 6, ExitAtStop=1, 
Volatile=False, ReEntryDelay=3);

For DAY 2, I'd like to change the StopModePercent to – let's say - 3% 
and 
on Day 3 maybe to 2%.

How do I do that?

Thanks.

Werner







------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/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/