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
condition with no. of alerts sent within a period of time
-
- Posts: 21
- Joined: 08 Mar 2021
- Been thanked: 1 time
-
- Posts: 21
- Joined: 08 Mar 2021
- Been thanked: 1 time
Re: condition with no. of alerts sent within a period of time
or how to count total orders sent within 4 bars for eample
Re: condition with no. of alerts sent within a period of time
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.or how to count total orders sent within 4 bars for eample
- Kate MultiCharts
- Posts: 598
- Joined: 21 Oct 2020
- Has thanked: 9 times
- Been thanked: 149 times
Re: condition with no. of alerts sent within a period of time
Hello lewisthegood,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
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.