Black Friday Sale! Up to 50% off on MultiCharts with the Advanced Strategy Pack Learn more...
+1 888 340 6572
MultiCharts Project Management
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
bug_report_small.png
Open Bug report MC-2473

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

action_vote_minus_faded.png
1
Votes
action_vote_plus_faded.png
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
Description

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:

atr=averagetruerange(20);
SetStopShare;
SetDollarTrailing(2*atr);

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

Comments (3)
#1
user-offline.png  MultiCharts Support (MultiCharts)
22 juin 2018 - 05:05
Hello Zheka,

The inputs you are using are incorrect.
SetStopLoss accepts a money value as an input:
https://www.multicharts.com/trading-software/index.php/SetStopLoss
SetStopLoss_pt accepts a tick value as an input:
https://www.multicharts.com/trading-software/index.php/SetStopLoss_pt

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.
Changes:
  •   icon_status.pngStatus changed: Under Review => Not a bug
#2
user-offline.png  Zheka (Zheka)
02 juil. 2018 - 07:44

Alex,

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.

#3
user-offline.png  MultiCharts Support (MultiCharts)
31 juil. 2018 - 03:09
Zheka,

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?
History
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