hello
I am trying to plot an equity curve and then use the curve to exit a 
position. I've used the help file, but without success. Basic code is:
Buy=Cross(MACD(),Signal());
Sell=Cross(PnL,0.9);
E = Equity();
PnL=E/Highest(E);
Plot(E,"equity",colorRed,styleLine+styleownscale);
Plot(Close,"stock",colorBlue,styleLine);

however i know PnL should be above sell to prevent an error...
If anyone has coded this please let me know?
thanks
Hugh

Reply via email to