SetBreakEven

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

SetBreakEven

Postby jankowski marek » 24 Jan 2008

SetBreakEven doesn't work for multiple contracts.

In the sequence:

SetStopShare;
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.
Attachments
ES1.JPG
ES1.JPG (44.63 KiB) Viewed 153 times
ES2.JPG
ES2.JPG (38.89 KiB) Viewed 158 times
ES3.JPG
ES3.JPG (44.81 KiB) Viewed 260 times


Return to “MultiCharts”