Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/13/2005(UTC) Posts: 715 Location: Midwest, USA
Was thanked: 1 time(s) in 1 post(s)
|
Using IE 6, WinXP, with all SP's and critical updates. Mode: Whatever the default mode is. Don't know how to post in a specific mode; there doesn't seem to be an option for it. I'll see if a "mode" shows up when I "edit" the post. NOPE, don't see any mode. Tell me where it is, and I'll try it.
Code: Periods:=Input("Periods",10,500,250); buy:=If(Cross(C,Mov(C,Periods,E)),1,0); sell:=If(Cross(Mov(C,Periods,E),C),1,0); init:=Cum(buy+sell>-1)=1; Bull:=BarsSince(Init OR Buy)> BarsSince(Init OR Sell); Bear:=BarsSince(Init OR Buy)< BarsSince(Init OR Sell); If(Bull,-1,If(Bear,1,0));
OK, I've switch the editor back to "Rich text", let's try again:
Code:
Periods:=Input("Periods",10,500,250);
buy:=If(Cross(C,Mov(C,Periods,E)),1,0);
sell:=If(Cross(Mov(C,Periods,E),C),1,0);
init:=Cum(buy+sell>-1)=1;
Bull:=BarsSince(Init OR Buy)>
BarsSince(Init OR Sell);
Bear:=BarsSince(Init OR Buy)<
BarsSince(Init OR Sell);
If(Bull,-1,If(Bear,1,0));
|