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

[amibroker] Is there any way to do this?



PureBytes Links

Trading Reference Links

I would like to get an alert when the stochk is going up and was below 
25 within a specified number of bars, but only if the stochk hasn't 
been over 75 since it was below 25. I have tried the idea below, but I 
know that it doesn't work because Cond3 could have happened before the 
stochk was below 25. 

Condition1 = StochK() < 25;
Cond1=StochK() > Ref(StochK(),-1);
Condition2 = BarsSince(Condition1) <=25;
Cond3=StochK() > 75;
Condition3 = BarsSince(Cond3) >25;

Is this possible?

Basically, I would like an alert when the stochk is rising up from 
below 25 after it has dropped from over 75. I don't care how long as 
long as it wasn't over a month ago.

Thanks,
Tom




Please note that this group is for discussion between users only.

To get 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
 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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