Search found 7 matches
- 12 Jul 2016
- Forum: MultiCharts
- Topic: Profit Factor & Average Trade Profit in Portfolio Trader
- Replies: 6
- Views: 2717
Re: Profit Factor & Average Trade Profit in Portfolio Trader
Hello Henry, Just incase others are following and for future reference on the forum the correct code is as follows: if (StrategyPerformance.GrossLoss != 0) { return StrategyPerformance.GrossProfit / StrategyPerformance.GrossLoss; } On a related subject, can i have more than one indicator within the ...
- 12 Jul 2016
- Forum: MultiCharts
- Topic: Profit Factor & Average Trade Profit in Portfolio Trader
- Replies: 6
- Views: 2717
Re: Profit Factor & Average Trade Profit in Portfolio Trader
Hi Henry,
when i try and apply the code to the chart i get an error message stating the following "Microsoft Script execution error. Description, Object expected Line 1"
Thanks
Charles
when i try and apply the code to the chart i get an error message stating the following "Microsoft Script execution error. Description, Object expected Line 1"
Thanks
Charles
- 06 Jul 2016
- Forum: MultiCharts
- Topic: Profit Factor & Average Trade Profit in Portfolio Trader
- Replies: 6
- Views: 2717
Re: Profit Factor & Average Trade Profit in Portfolio Trader
Hi thanks for replying. This is MC code, it is a snippet from the PT > Optimisation > Optimisation Criteria > Custom Criteria There is sample code that can be added to backtest criteria of your own choice or those beyond what is provided within the PT Backtester. The Normal Backtester for a standalo...
- 02 Jul 2016
- Forum: MultiCharts
- Topic: Profit Factor & Average Trade Profit in Portfolio Trader
- Replies: 6
- Views: 2717
Profit Factor & Average Trade Profit in Portfolio Trader
Hello all, i am struggling to find how to correctly code for Profit Factor and Average Trade as custom performance report indicators in Portfolio Trader. I keep getting error messages such as "strategy performance is undefined". The problem is that while there are examples presenting the format, whi...
- 22 Jun 2016
- Forum: MultiCharts
- Topic: Max Positions Held
- Replies: 0
- Views: 1035
Max Positions Held
Hello guys, i have some code, very simple! It is to limit the number of positions that PT can open, the first part of the code which is to limit the number of positions works, but the second part which allow PT to begin executing new positions once open positions drops back below the MaxPositions th...
- 18 Apr 2016
- Forum: MultiCharts
- Topic: Equity Curve Trading
- Replies: 3
- Views: 1979
Equity Curve Trading
Hello, i realise that you only like to give limited coding assistance but i believe the bulk of the coding has been done. I am trying to get a Money Management system that trades the equity code of a system on each individual futures contract it is applied too. The MM system presently looks at the r...
- 24 Mar 2015
- Forum: MultiCharts
- Topic: Trading off a Spread Indicator
- Replies: 2
- Views: 1286
Trading off a Spread Indicator
Hello guys, i am having major problems trying to get some code of mine working. I have used the print statment to try and find what the cause of this is but to no avail. I am looking to buy a contract when the spread indicator(which i have turned into a dollar value) moves above or below a 30 period...