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.
SetBreakEven
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007
-
- Posts: 13
- Joined: 03 Dec 2007
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.
Stops and targets in this situation work OK.
- Attachments
-
- ES1.JPG
- (44.63 KiB) Downloaded 339 times
-
- ES2.JPG
- (38.89 KiB) Downloaded 344 times
-
- ES3.JPG
- (44.81 KiB) Downloaded 446 times