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

The additive profit



PureBytes Links

Trading Reference Links

/*Additive Profit"*/
s0=cross(stochd(),30);
s1=cross(70,stochd());
g0=exrem(s0,s1);
g1=exrem(s1,s0);
buyp=valuewhen(g0==1,c,1);
sellp=valuewhen(g1==1,c,1);
prr=iif(g1==1,sellp/buyp-1,0);
pr=iif(isempty(prr),0,prr);
EnableScript("jscript");
<%
pr = VBArray( AFL( "pr" ) ).toArray();
gp=new Array();
gp[0]=0;
for(i=1;i<pr.length;i++)
{gp[i]=gp[i-1]+pr[i];}
AFL.Var("ap") =gp ;
%>
graph0=100*ap;
graph2=100*pr;

Change the first two conditions s0 and s1, to find
other additive(accumulated) profits.
In the att. example, after 20 months and 6 trades,
I have my money back(forget commissions). The
additive profit graph began from 0 (initial value) and
400 days later came back to 0.

Dimitris Tsokakis 

------=_NextPart_001_0012_01C12647.91EF5800
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=#ffffff>
<DIV><FONT face=Arial size=2>Bernard,</FONT></DIV>
<DIV><FONT face=Arial size=2>The relative formula for the additive 
profit</FONT></DIV>
<DIV><FONT face=Arial size=2>3%+11%+(-12.2%)+etc</FONT></DIV>
<DIV><FONT face=Arial size=2>is graphed by the formula</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>/*Additive Profit"*/</FONT></DIV>
<DIV><FONT face=Arial 
size=2>s0=cross(stochd(),30);<BR>s1=cross(70,stochd());<BR>g0=exrem(s0,s1);<BR>g1=exrem(s1,s0);<BR>buyp=valuewhen(g0==1,c,1);<BR>sellp=valuewhen(g1==1,c,1);<BR>prr=iif(g1==1,sellp/buyp-1,0);<BR>pr=iif(isempty(prr),0,prr);<BR>EnableScript("jscript");<BR>&lt;%<BR>pr 
= VBArray( AFL( "pr" ) ).toArray();<BR>gp=new 
Array();<BR>gp[0]=0;<BR>for(i=1;i&lt;pr.length;i++)<BR>{gp[i]=gp[i-1]+pr[i];}<BR>AFL.Var("ap") 
=gp ;<BR>%&gt;<BR>graph0=100*ap;<BR>graph2=100*pr;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Change the first two conditions s0 and s1,to 
find</FONT></DIV>
<DIV><FONT face=Arial size=2>other additive(accumulated) profits.</FONT></DIV>
<DIV><FONT face=Arial size=2>In the att. example, after 20 months and 6 
trades,</FONT></DIV>
<DIV><FONT face=Arial size=2>I have my money back(forget commissions). 
The</FONT></DIV>
<DIV><FONT face=Arial size=2>additive profit graph began from 0 (initial value) 
and</FONT></DIV>
<DIV><FONT face=Arial size=2>400 days later came back to 0.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Dimitris Tsokakis</FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_001_0012_01C12647.91EF5800--

Attachment:
gif00135.gif

Attachment: Description: "Description: GIF image"