could multicharts plot indicator on strategy equity curve?
Posted: 23 Mar 2008
thank you
MultiCharts
https://www.multicharts.com/discussion/
https://www.multicharts.com/discussion/viewtopic.php?f=5&t=4950
Code: Select all
{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);
Code: Select all
{POP Equity Curve Results to indicator*****************************}
Inputs: System1(01);
{Numbers and names at your discretion here, just 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);
EQT=POPLAST(System1,DATE,TIME)+InitCapital;
Plot1(EQT,"Net Equity",Yellow,Default,1);