+1 888 340 6572
MultiCharts Project Management
Go to the previous open issue
Go to the previous issue (open or closed)
Please log in to bookmark issues
Open Bug report MC-2473

Variable parameter not applied in standard SetStoploss(), SetTrailingStop_pt,SetDollarStop()

Go to the next issue (open or closed)
Go to the next open issue

It is common to make stops a function of market behavior (e.g. volatility, i.e. multiples of atr or std).
However, standard MC strategy stop orders continue to apply a parameter value which was passed the first time such a stop order has been submitted.

This might also be valid for TakeProfit orders.

If this is by design and not a "bug" in the current MC, than pls re-classify into a feature request.

Steps to reproduce this issue

Take MACrossover Buy/Short signals;

Add another signal:


Notice that the exits are the distance of 2atr, calculated at trade entry, regardless of how 2atr changed during the trade.

Comments (3)
user-offline.png  MultiCharts Support (MultiCharts)
Jun 22, 2018 - 16:05
Hello Zheka,

The inputs you are using are incorrect.
SetStopLoss accepts a money value as an input:
SetStopLoss_pt accepts a tick value as an input:

There is also no need to modify the SetDollarTrailing amount input as this order's price is auto adjusted from the max reached profit. If you constantly modify the input, the order's price may not be auto adjusted since the highest profit value is changing.
  •   icon_status.pngStatus changed: Under Review => Not a bug
user-offline.png  Zheka (Zheka)
Jul 02, 2018 - 18:44


sorry, but what exactly do I do incorrectly?

With SetStopShare, an atr=averagetruerange() IS a "money value".
And all the functions work mostly as expected, except that the variable parameter is not applied in the course of a trade.
This is what my "bug report" is about.

With SetDollarTrailing(), the parameter is recalculated ONCE per bar( not constantly), to be applied for the next bar. It should not interfere in any way with "highest profit" calculations intrabar.

user-offline.png  MultiCharts Support (MultiCharts)
Jul 31, 2018 - 14:09

All special orders will recalculate and forget their last value when their amount changes. You can consider the order to be calculated anew in such case. DollarTrailing in particular will be recalculated not from the maximum price reached from the moment the position was opened, but from the current ask, bid or close, depending on the "Get relatime data from" option and the position type. Orders will readjust if the amount has changed. What makes you think that the amount changes are not being applied? Could you please provide us with an example?
Issue basics
  • Type of issue
    Bug report
  • Category
    Not determined
  • Targeted for
    Not determined
  • Status
    Not a bug
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
  • Posted by
    user-offline.png  Zheka (Zheka)
  • Owned by
    Not owned by anyone
  • Assigned to
    Not assigned to anyone
  • Subscribers
    2 subscriber(s)
    Click here to show the list of subscribers
Times and dates
  • Posted at
  • Last updated
Issue details
  • Reproducability
    Not determined
Attachments (0)
There is nothing attached to this issue
Commits (0)
There are no code checkins for this issue
Duplicate issues (0)
This issue does not have any duplicates