condition with no. of alerts sent within a period of time

Questions about MultiCharts .NET and user contributed studies.
lewisthegood
Posts: 21
Joined: 08 Mar 2021
Been thanked: 1 time

condition with no. of alerts sent within a period of time

Postby lewisthegood » 14 Apr 2021

Q1: Does MC.NET support the conditions using number of alerts generated within a period of time? For example, if there are more than 3 alerts objects (I have both turning up alert and turning down alert) generated with 4 bars, then orders will not be sent

Q2: Does MC.NET support the no. of orders sent within a period of time. For example, calculate the no. of orders sent within a period of times

lewisthegood
Posts: 21
Joined: 08 Mar 2021
Been thanked: 1 time

Re: condition with no. of alerts sent within a period of time

Postby lewisthegood » 15 Apr 2021

or how to count total orders sent within 4 bars for eample

darob
Posts: 207
Joined: 20 Nov 2014
Has thanked: 57 times
Been thanked: 32 times

Re: condition with no. of alerts sent within a period of time

Postby darob » 15 Apr 2021

or how to count total orders sent within 4 bars for eample
You'd have to code these ideas. This one could be a counter that tracks alerts or orders that resets every 4 bars for example. Maybe a consolidation period after x number of orders are sent etc. Check existing MC.net code and online resources like tradingcode.net for ideas.

User avatar
Kate MultiCharts
Posts: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 times

Re: condition with no. of alerts sent within a period of time

Postby Kate MultiCharts » 16 Apr 2021

Q1: Does MC.NET support the conditions using number of alerts generated within a period of time? For example, if there are more than 3 alerts objects (I have both turning up alert and turning down alert) generated with 4 bars, then orders will not be sent

Q2: Does MC.NET support the no. of orders sent within a period of time. For example, calculate the no. of orders sent within a period of times
Hello lewisthegood,

Alerts are sent when the conditions specified in the code are met. You can try implementing a counter into the condition where the alert is generated. Then create a new condition based on the counter.

As for your second question, there are no such built-in functionalities.


Return to “MultiCharts .NET”