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

Notification

Icon
Error

Options
Go to last post Go to first unread
gorachand  
#1 Posted : Sunday, February 7, 2016 4:57:00 PM(UTC)
gorachand

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 2/19/2012(UTC)
Posts: 106

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)

Hello,

         It is well known that a Bullish candlestick signal above the T line--8 period ema is a strong buy signal.

Accordingly I coded an indicator--'Candlestick Bullish Pattern'

 A:=(Ref( EngulfingBull(),-1)=(Ref(Mov(C,8,E),-1)) AND (C> EngulfingBull()));
B:=(Ref( EngulfingBull(),-1)>Ref(Mov(C,8,E),-1) AND (C> EngulfingBull()));
D:=(Ref( PiercingLine() ,-1)=(Ref(Mov(C,8,E),-1)) AND (C>PiercingLine()));
Y:=(Ref( PiercingLine() ,-1)>(Ref(Mov(C,8,E),-1)) AND (C>  PiercingLine()));
F:=(Ref( BullHarami() ,-1)=(Ref(Mov(C,8,E),-1)) AND (C> BullHarami() ));
G:=(Ref( BullHarami() ,-1)>(Ref(Mov(C,8,E),-1)) AND (C> BullHarami() ));
Z:=(Ref(  Hammer(),-1)=(Ref(Mov(C,8,E),-1)) AND (C> Hammer()));
J:=(Ref(  Hammer(),-1)>(Ref(Mov(C,8,E),-1)) AND (C> Hammer()));
K:=(Ref( InvHammer(),-1)=(Ref(Mov(C,8,E),-1)) AND (C>  InvHammer()));
M:=(Ref( InvHammer() ,-1)>(Ref(Mov(C,8,E),-1)) AND (C>  InvHammer())); 
N:=(Ref(  MorningStar(),-1)=(Ref(Mov(C,8,E),-1)) AND (C>   MorningStar())); 
Y:=(Ref(  MorningStar(),-1)>(Ref(Mov(C,8,E),-1)) AND (C> MorningStar())); 
X:=(A AND B) OR (D AND Y) OR (F AND G) OR (Z AND J) OR (K AND M) OR (N AND Y);
{Plot}
X;

And in the Exploration --Filter tab--I coded

 Fml( "Candlestick Bullish Pattern") =1

Running this exploration across a large number of securities gives no results.

Where am I going wrong?

Can someone help?

Regards,

Dr.Chatterjee

 

 

MS Support  
#2 Posted : Monday, February 8, 2016 8:37:59 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,943

Thanks: 86 times
Was thanked: 155 time(s) in 150 post(s)
Without going into detail regarding every variable, they seem to all be using the functions inappropriately. Candlestick functions are either True (1) or False (0). So when you call a candlestick function, you will get a 1 or 0 as the output. Using variable A as an example, what you're writing is: Is yesterday's EngulfingBull true? 1 or 0. Is yesterday's 8 period EMA equal to 1 or 0 (as you can see this is a problem)? Is the current Close equal to a 1 or 0 (also a problem)? In short, you are comparing True/False statements (Candlestick functions) to actual price values (Closing Price and Exponential Moving Average).
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.