Questions about MultiCharts and user contributed studies.
jankowski marek
Posts: 13
Joined: 03 Dec 2007


Postby jankowski marek » 24 Jan 2008

SetBreakEven doesn't work for multiple contracts.

In the sequence:

SetStopLoss(stopTicks * tickSize * BigPointValue);
SetBreakEven((breakevenTicks * tickSize * BigPointValue);

SetBreakEven will multiply (inside SetBreakEven function) input by CurrentContracts and set stop incorrectly.

SetStopLoss for multiply contracts works OK.

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 28 Jan 2008

Hello Marek,

What symbol have you been using the code on? What are it's settings in QuoteManager? What are Big Point Value and MinMovement? What input values did you use? Could you post a screenshot as well?

Thank you.

Best regards.

jankowski marek
Posts: 13
Joined: 03 Dec 2007

Postby jankowski marek » 28 Jan 2008

I'm using ES #F=2 from eSignal. For 1 contract everything is OK. The problem is, when I change contracts traded to more then 1 contracts. In this situation BreakEven stops happen in different prices or they do not happen at all (compared to 1 contract lot).

Stops and targets in this situation work OK.
(44.63 KiB) Downloaded 339 times
(38.89 KiB) Downloaded 344 times
(44.81 KiB) Downloaded 446 times

Return to “MultiCharts”