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

Notification

Icon
Error

Options
Go to last post Go to first unread
Derek Worswick  
#1 Posted : Tuesday, July 3, 2012 2:33:00 AM(UTC)
Derek Worswick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 8/11/2005(UTC)
Posts: 104

Hi, Smart Money Index – “ It is said that there are always two groups of traders in the markets at all times, the professional (or “smart”) money, and the amateur (or “public”) money. “ I would like to create A Expert Adviser Highlighter for the Smart Money Index I am still getting some false signals from the Expert Adviser Highlights code below I would appreciate nay help Kind regards, Derek
Code:

----------------------------------
{ Highlights Bullish }

public:=Mov(O-Ref(C,-1),21,E)*200;
pro:=Mov(C-O,21,E)*200;

If((pro > public AND pro>0),1,0)
------------------------------------------------------------
{ Highlights Bearish }

public:=Mov(O-Ref(C,-1),21,E)*200;
pro:=Mov(C-O,21,E)*200;

If((pro < public AND pro<0),1,0)


-------------------------------------------
Derek Worswick  
#2 Posted : Tuesday, July 3, 2012 2:41:08 AM(UTC)
Derek Worswick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 8/11/2005(UTC)
Posts: 104

Hi Error in pasting he code The last line of the code should read Still unable to paste last line of code If((pro < public AND pro<0),1,0) Derek
Derek Worswick  
#3 Posted : Tuesday, July 3, 2012 7:13:34 AM(UTC)
Derek Worswick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 8/11/2005(UTC)
Posts: 104

Hi , The last line of the code should read similar to the Fourth ( 4 th ) Line But with the Greater than signs ">" replaced by Less than signs "<" I still can not post this line in the normal method. Derek
wabbit  
#4 Posted : Tuesday, July 3, 2012 8:36:08 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Code:

----------------------------------
{ Highlights Bullish }
public:=Mov(O-Ref(C,-1),21,E)*200;
pro:=Mov(C-O,21,E)*200;

If((pro > public AND pro>0),1,0)

------------------------------------------------------------
{ Highlights Bearish }
public:=Mov(O-Ref(C,-1),21,E)*200;
pro:=Mov(C-O,21,E)*200;
If((pro < public AND pro<0),1,0)

-------------------------------------------


As has been explained MANY times before, the Boolean expression, If(something,1,0) is redundant.

Code:

----------------------------------
{ Highlights Bullish }
public:=Mov(O-Ref(C,-1),21,E)*200;
pro:=Mov(C-O,21,E)*200;

pro > public AND pro>0

------------------------------------------------------------
{ Highlights Bearish }
public:=Mov(O-Ref(C,-1),21,E)*200;
pro:=Mov(C-O,21,E)*200;

pro < public AND pro<0

-------------------------------------------




wabbit [:D]

P.S. I've no idea how this is supposed to be tracking the "smart money" but seeing how much money has been lost by (so-called professional) market managers, do you really want to follow them?


Derek Worswick  
#5 Posted : Tuesday, July 3, 2012 8:54:31 AM(UTC)
Derek Worswick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 8/11/2005(UTC)
Posts: 104

HI wabbit, Thank you very much for you help. Derek I think I had a compatibly problem when posting the code with for the " Less than Sign "
wabbit  
#6 Posted : Tuesday, July 3, 2012 9:43:58 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
It's a problem caused when the Community Server software parses the posts, that it treats angled brackets as html tags. I have reported this to the Admin team too many times already... [sigh]



wabbit [:D]

Derek Worswick  
#7 Posted : Tuesday, July 3, 2012 9:53:43 AM(UTC)
Derek Worswick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 8/11/2005(UTC)
Posts: 104

Hi again Wabbit, Thank you for going to the trouble of explaining why I had a problem with the "Less Than Sign " sign. Kind regards, Derek
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.