[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Buy, Sell "Arrows"



PureBytes Links

Trading Reference Links

Buy=Cross(StochD(),30);Sell=Cross(70,StochD());

I want to see entry and exit points on an RSI() graph.
Use the following code for Indicator Builder

/*Buy/Sell points on an Indicator*/
Buy=Cross(StochD(),30);Sell=Cross(70,StochD());//Your trading rules
Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);
Ind=RSI();//Your Indicator
Plot(Ind,"",1,8);
x=Cum(1);
pR =Buy;
x01= ValueWhen( pR, x, 1 );
y01 = ValueWhen( pR, Ind, 1 ) ;
Plot(IIf(x==x01,y01-0.03*abs(y01),-1e10),"",5,8);
pR =Sell;
x01= ValueWhen( pR, x, 1 );
y01 = ValueWhen( pR, Ind, 1 ) ;
Plot(IIf(x==x01,y01+0.03*abs(y01),-1e10),"",4,8);
Title=Name()+", RSI()="+WriteVal(Ind);
GraphXSpace=1;

In the attached gif, StochD() signals are not the best when placed on RSI()graph.
I hope this idea may help to compare indicators use.
I also hope, for the near future, to be able to put Buy/Sell real Arrows onany graph.
Until then, "necessity is mother of invention". 
Dimitris Tsokakis

------=_NextPart_001_0018_01C1E879.048079A0
Content-Type: text/html;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-7" http-equiv=Content-Type>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffff00>
<DIV><FONT size=2>Suppose I have a trading system and I want to place visible 
buy/sell points on</FONT></DIV>
<DIV><FONT size=2>another indicator, to see if entry and exit points are in 
agreement.</FONT></DIV>
<DIV><FONT size=2>Let the trading system be</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>Buy=Cross(StochD(),30);Sell=Cross(70,StochD());<BR><BR>I want 
to see entry and exit points on an RSI() graph.<BR>Use the following code for 
Indicator Builder</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT color=#ff0000><STRONG>/*Buy/Sell points on an 
Indicator*/<BR></STRONG></FONT>Buy=Cross(StochD(),30);Sell=Cross(70,StochD());//<STRONG><FONT 
color=#ff0000>Your trading 
rules<BR></FONT></STRONG>Buy=ExRem(Buy,Sell);Sell=ExRem(Sell,Buy);<BR>Ind=RSI();//<STRONG><FONT 
color=#ff0000>Your 
Indicator<BR></FONT></STRONG>Plot(Ind,"",1,8);<BR>x=Cum(1);<BR>pR =Buy;<BR>x01= 
ValueWhen( pR, x, 1 );<BR>y01 = ValueWhen( pR, Ind, 1 ) 
;<BR>Plot(IIf(x==x01,y01-0.03*abs(y01),-1e10),"",5,8);<BR>pR =Sell;<BR>x01= 
ValueWhen( pR, x, 1 );<BR>y01 = ValueWhen( pR, Ind, 1 ) 
;<BR>Plot(IIf(x==x01,y01+0.03*abs(y01),-1e10),"",4,8);<BR>Title=Name()+", 
RSI()="+WriteVal(Ind);<BR>GraphXSpace=1;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>In the attached gif, StochD() signals are not the best when 
placed on RSI() graph.</FONT></DIV>
<DIV><FONT size=2>I hope this idea may help to compare indicators 
use.</FONT></DIV>
<DIV><FONT size=2>I also hope, for the near future, to be able to put Buy/Sell 
real Arrows on any graph.</FONT></DIV>
<DIV><FONT size=2>Until then, "necessity is mother of invention". </FONT></DIV>
<DIV><FONT size=2>Dimitris Tsokakis</FONT></DIV></BODY></HTML>

------=_NextPart_001_0018_01C1E879.048079A0--

Attachment:
gif00295.gif

Attachment: Description: "Description: GIF image"