I know these I_xxx functions are not supported yet.
Is there any alternative way to get such values?
How to simulate I_NetProfit and I_CloseEquity ?
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
-
- Posts: 60
- Joined: 21 Dec 2007
- Has thanked: 3 times
- Been thanked: 9 times
@2haerim
Take a look at my posting in this thread.
http://forum.tssupport.com/viewtopic.ph ... ushpop+dll
Take a look at my posting in this thread.
http://forum.tssupport.com/viewtopic.ph ... ushpop+dll
-
- Posts: 60
- Joined: 21 Dec 2007
- Has thanked: 3 times
- Been thanked: 9 times
@2haerim
You are right, there is no need for data2 to plot the numbers from data1 system.
Recommended reading: "Advanced Trading Rules" by Emmanuel Acar & Stephen Satchell. Felix Gasser writes about "The need for performance evaluation in technical analysis" and describes his idea of an Draw Down Indicator incl. Easylanguage code to send the draw down data to an ASCII file.
Enjoy!
Helmut
You are right, there is no need for data2 to plot the numbers from data1 system.
Recommended reading: "Advanced Trading Rules" by Emmanuel Acar & Stephen Satchell. Felix Gasser writes about "The need for performance evaluation in technical analysis" and describes his idea of an Draw Down Indicator incl. Easylanguage code to send the draw down data to an ASCII file.
Enjoy!
Helmut
-
- Posts: 60
- Joined: 21 Dec 2007
- Has thanked: 3 times
- Been thanked: 9 times
@HaeRim
I have no other reference than the book. Take a look at my indicator here.
I have no other reference than the book. Take a look at my indicator here.
Code: Select all
{Indicator: Plot Equity Curve}
Inputs: Style(0), System1(01);
{make sure to match the RefNumbers you've chosen for the "PUSH" values in your systems}
DefineDLLFunc: "PUSHPOP.DLL", DOUBLE, "POPLAST", LONG, LONG, LONG;
DefineDLLFunc: "PUSHPOP.DLL", DOUBLE, "POP", LONG, LONG, LONG;
Vars: InitCapital(100000), EQT(0), Drawdown(0);
EQT = POPLAST(System1,DATE,TIME)+InitCapital;
//Calculates Draw Down and Max. Draw Down in percent
var: HighEquity(0),DD(0),MxDD(0),PrcDD(0),MxPrcDD(0);
if EQT > HighEquity then HighEquity = EQT;
DD = HighEquity - EQT;
If DD > MxDD then MxDD = DD;
If HighEquity <> 0 then PrcDD = DD /(HighEquity/100);
If PrcDD > MxPrcDD then MxPrcDD = PrcDD;
if Style = 0 then
Plot1(EQT,"Net Equity",Yellow,Default,1);
if Style = 1 then
Plot1(Round(Neg(PrcDD),1),"Current%DD");
//Send numbers to file
If BarNumber = 1 then FileDelete("C:\Temp\EQT.csv");
if d > d[1] then print(File("C:\Temp\EQT.csv"),
ELDateToString(date[1]),";", EQT :0:0,";", Neg(PrcDD) :0:2,";");
//Copy this code to the end of your signal:
{{Push Profit Results to indicator**********************************}
Inputs: ReferenceNr(01);
DefineDLLFunc: "PUSHPOP.DLL", VOID, "PUSH", LONG, LONG, LONG, DOUBLE;
DefineDLLFunc: "PUSHPOP.DLL", VOID, "PUSHCLEAN", LONG;
If currentbar=1 then PushClean(ReferenceNr);
PUSH(ReferenceNr, DATE, TIME, NetProfit); }
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
-
- Posts: 407
- Joined: 01 Jan 2008
- Been thanked: 3 times