Order name on chart and Order and position tracker differ  [SOLVED]

Questions about MultiCharts and user contributed studies.
evdl
Posts: 401
Joined: 19 Jan 2011
Location: Netherlands
Has thanked: 85 times
Been thanked: 124 times

Order name on chart and Order and position tracker differ

Postby evdl » 11 Apr 2013

When using an initial stoploss and a trailing stoploss. Once the trailing stoploss is activated it replaces the initial stoploss. The initial stoploss ("initial stoploss") has an different ordername then the trailingstop ("trailing stoploss") but are both stop orders.

On the chart it displays the right ordername of the trailing stoploss after it is activated, but in the order and position tracker it displays the ordername of the initial stoploss.

It looks like the order and position tracker can not see the difference between stoplosses with another ordername. Because if I use for example a stoploss limit for the trailingstop then it will display the right ordername (due to the difference of stop and stop limit). The chart however can see the difference between stoploss ordernames.

Is this something I need to change in my code or is it a little bug in the order and position tracker?

Code: Select all


// initial stoploss
if (MP = 1) and (trailingstop = false) then begin
Sell ("LX-initial stoploss") next bar at exitprice stop;
end;

// trailing stoploss
If trailingstop = true then begin
If MP = 1 then begin
Sell ("LX-trailingstop") next bar at trailingstop_Exit stop;
end;
end;

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

Re: Order name on chart and Order and position tracker diffe

Postby Henry MultiСharts » 11 Apr 2013

Hello evdl,

We will check that.

evdl
Posts: 401
Joined: 19 Jan 2011
Location: Netherlands
Has thanked: 85 times
Been thanked: 124 times

Re: Order name on chart and Order and position tracker diffe

Postby evdl » 11 Apr 2013

Thanks Henry

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

Re: Order name on chart and Order and position tracker diffe  [SOLVED]

Postby Henry MultiСharts » 12 Apr 2013

This issue has been confirmed. It will be fixed in the next version of MultiCharts.


Return to “MultiCharts”