2020-10-13 15:10:26 +02:00
|
|
|
using MtApi.Monitors.Triggers;
|
|
|
|
|
|
2016-09-09 19:10:10 +03:00
|
|
|
namespace MtApi.Monitors
|
|
|
|
|
{
|
|
|
|
|
public class TimeframeTradeMonitor : TradeMonitor
|
|
|
|
|
{
|
2020-10-13 15:52:55 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Constructor for initializing a new instance with a trigger instance of <see cref="NewBarTrigger"/>.
|
|
|
|
|
/// <para>SyncTrigger is set to true by default</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="apiClient">The <see cref="MtApiClient"/> which will be used to communicate with MetaTrader.</param>
|
2020-10-13 15:10:26 +02:00
|
|
|
public TimeframeTradeMonitor(MtApiClient apiClient)
|
|
|
|
|
: base(apiClient, new NewBarTrigger(apiClient))
|
2016-09-09 19:10:10 +03:00
|
|
|
{
|
2020-10-13 15:10:26 +02:00
|
|
|
SyncTrigger = true; //Sync-Trigger set to true, to have the same behavior as before
|
2016-09-09 19:10:10 +03:00
|
|
|
}
|
|
|
|
|
}
|
2020-10-13 15:10:26 +02:00
|
|
|
}
|