Performance report is showing negative when it is not

Questions about MultiCharts and user contributed studies.
imoneyfish
Posts: 38
Joined: 26 Oct 2011
Has thanked: 6 times
Been thanked: 2 times

Performance report is showing negative when it is not

Postby imoneyfish » 26 Oct 2011

I don't know why the performance report is showing all with lost when backtesting and the actual results showing in the chart is profits.

http://www.flickr.com/photos/53979003@N ... /lightbox/


See order 63 and 64 http://www.flickr.com/photos/53979003@N ... /lightbox/

This trade should be a profit trade but is showing negative result in the performance report. What is wrong with it please? Many Thanks.

imoneyfish
Posts: 38
Joined: 26 Oct 2011
Has thanked: 6 times
Been thanked: 2 times

Re: Performance report is showing negative when it is not

Postby imoneyfish » 26 Oct 2011

I think I found the probelm here because I used IB as history data. And I think IB default contract for EUR/USD is 20000, instead, MC use 1 for backtesting. How can i write a code to fix that please?

Cheers,

imoneyfish
Posts: 38
Joined: 26 Oct 2011
Has thanked: 6 times
Been thanked: 2 times

Re: Performance report is showing negative when it is not

Postby imoneyfish » 26 Oct 2011

I think I found the probelm here because I used IB as history data. And I think IB default contract for EUR/USD is 20000, instead, MC use 1 for backtesting. How can i write a code to fix that please?

Cheers,

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Performance report is showing negative when it is not

Postby Henry MultiСharts » 27 Oct 2011

Do you mean you need to buy/sell 20000 contracts in the script instead of 1 contract ?

imoneyfish
Posts: 38
Joined: 26 Oct 2011
Has thanked: 6 times
Been thanked: 2 times

Re: Performance report is showing negative when it is not

Postby imoneyfish » 27 Oct 2011

Do you mean you need to buy/sell 20000 contracts in the script instead of 1 contract ?
Yes, I think so. However, this will cause problem because If I change the parameter to 20000, it will still calculated as $1 a pip, then the performance report will result much bigger lost. How can I solve this please? And by the way, my MC7.1 beta keep dropping connection with my IB account maybe every 24 hours. Is there any way to prevent that? Thanks.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Performance report is showing negative when it is not

Postby Henry MultiСharts » 28 Oct 2011

Please go to the Quote manager->make a right click on the symbol->Edit symbol->settings tab.
Please make sure you have the correct symbol settings (please see the attachment).
If you need to buy 20000 contacts you need to write it in your script.
In other case it will buy the default value.
The default value can be set in the strategy properties (Multicharts->Format->Strategy properties->Properties->Fixed shares/Contracts).
Please also make sure that the comission and slippage are set properly.
Your order prices are affected by these settings.

Interactive brokers TWS shuts down once in 24 hours.
You can configure this time in TWS. Please go to the Configure->Lock and exit->Set auto log off time.

There are three options:
1)You can increase the timeout for disabling auto-trading in Multicharts.
In Multicharts please go to File tab->Broker profiles->Manage->IB->Edit.
Here you can see the option: Disable auto trading after NNNNN seconds.
You can input the value equal almost up to 24 hours (=86400 seconds).
In this case Multicharts will not disable auto trading for NNNNN seconds.
You will need to start TWS during this timeout period to continue trading.

2) You can use IB gateway application.
It doesn’t shut down once in 24 hours.
IB gateway application allows you to send orders but it does not provide such functionality as TWS (sending orders, symbol and price information).
In order to use IB gateway application you need to do the following changes:
In the quote manager please go to Tools->Data sources->IB->Settings.
Uncheck the option “Launch TWS at start” and input the port IB gateway application uses.

3) You can avoid Interactive brokers TWS from shutting down once in 24 hours.
In TWS please go to the Configure->Lock and exit->Set auto log off time.
Set the time before the current time.
In this case TWS will wait for the next day to shut down.
Next day you can repeat the operation.
Attachments
EUR.USD.PNG
(18.04 KiB) Downloaded 691 times


Return to “MultiCharts”