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

Notification

Icon
Error

Options
Go to last post Go to first unread
Mr. Bungle  
#1 Posted : Saturday, July 3, 2010 1:11:13 PM(UTC)
Mr. Bungle

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/21/2009(UTC)
Posts: 3

Hello, maybe you can help me with this one ? : I have an indicator, plotted as a histogram: Mov(Mov((C-(Ref(Mov(C,30,S),-15))),16,E),5,E) I wanted to make an expert-advisor with this indicator, Green when the indicator ticks up, red when it ticks down. I would be glad if you could help me with one :) best regards Mr.Bungle
henry1224  
#2 Posted : Saturday, July 3, 2010 2:11:05 PM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
A:=Mov(Mov((C-(Ref(Mov(C,30,S),-15))),16,E),5,E);
Signal:=If(A>Ref(A,-1),1,If(A<ref(A,-1),-1,0));
Signal=1{for a green highlight}

A:=Mov(Mov((C-(Ref(Mov(C,30,S),-15))),16,E),5,E);
Signal:=If(A>Ref(A,-1),1,If(A<ref(A,-1),-1,0));
Signal=-1{for a red highlight}



Mr. Bungle  
#3 Posted : Saturday, July 3, 2010 2:32:27 PM(UTC)
Mr. Bungle

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/21/2009(UTC)
Posts: 3

Thank you, Henry ! best regards Mr.Bungle
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.