37 lines
1.3 KiB
MQL5
37 lines
1.3 KiB
MQL5
//+------------------------------------------------------------------+
| |
//| SampleStrategy.mqh |
| |
//| Copyright 2025, MetaQuotes Ltd. |
| |
//| https://www.mql5.com |
| |
//+------------------------------------------------------------------+
| |
#property copyright "Copyright 2025, MetaQuotes Ltd."
| |
#property link "https://www.mql5.com"
| |
#property version "1.00"
| |
| |
#include "AbstractStrategy.mqh"
| |
#include "../Events/Events/AnalysisEvents.mqh"
| |
//+------------------------------------------------------------------+
| |
//| |
| |
//+------------------------------------------------------------------+
| |
class SampleStrategy : public AbstractStrategy
| |
{
| |
private:
| |
| |
public:
| |
SampleStrategy() {}
| |
~SampleStrategy() {}
| |
| |
virtual void OnEvent(AbstractEvent* event) override
| |
{
| |
| |
if(event.GetType() != ANALYSIS)
| |
return;
| |
/* MarketStructEvent* sig = (MarketStructEvent*)event;
| |
| |
PublishSignal(sig.GetSymbolName(), 1, sig.GetPrice(), 0, 0, sig.GetTimestamp(),ORDER_TYPE_BUY);
| |
| |
*/
| |
| |
| |
}
| |
};
| |
//+------------------------------------------------------------------+
|