logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
jigshir  
#1 Posted : Saturday, July 4, 2015 6:42:33 AM(UTC)
jigshir

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 12/7/2013(UTC)
Posts: 23

Thanks: 1 times
explore  when the Close Price TOUCH  the 50 day Exponential Moving Average and price above 20 day Exponential Moving Average
mstt  
#2 Posted : Sunday, July 5, 2015 5:11:29 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi jigshir Can you define "Touch" for me? The chance of a 50 period EMA "touching" (being the same as) the CLOSE on any given bar is quite remote, so you probably need to define what "Touch" means in the context of what you're trying to achieve. The following formula should get you started but you will need to adjust the percentage multiplier ( currently 0.5% ) of the second condition to get the number of hits that are appropriate for your purposes. {Cola} M:=Mov(C,50,E); C >= M AND C <= M*1.005; Roy (mstt)
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.