Specifiche
//| The MACD Sample EA class sample | //+------------------------------------------------------------------+ class CSampleExpert { protected: //--- protected variables - class members are available only inside the class methods double m_adjusted_point; // a multiplier for 3/5-digit quotes CTrade m_trade; // CTrade class sample CSymbolInfo m_symbol; // CSymbolInfo class sample CPositionInfo m_position; // CPositionInfo class sample CAccountInfo m_account; // CAccountInfo class sample //--- indicator handles int m_handle_macd; // the MACD indicator handle int m_handle_ema; // the Moving Average indicator handle //--- indicator buffers double m_buff_MACD_main[]; // the buffer of the main line of the MACD indicator double m_buff_MACD_signal[]; // the buffer of the signal line of the MACD indicator double m_buff_EMA[]; // EMA indicator buffers //--- current indicator values double m_macd_current; double m_macd_previous; double m_signal_current; double m_signal_previous; double m_ema_current; double m_ema_previous; //--- levels (in standard points) double m_macd_open_level; double m_macd_close_level; double m_traling_stop; double m_take_profit; public: //--- constructor CSampleExpert(void); //--- destructor ~CSampleExpert(void); //--- public-methods can be called from outside the class //--- initialization method bool Init(void); //--- deinitialization method void Deinit(void); //--- method of processing bool Processing(void); protected: //--- protected-methods can be accessed only inside the class methods bool InitCheckParameters(const int digits_adjust); bool InitIndicators(void); bool LongClosed(void); bool ShortClosed(void); bool LongModified(void); bool ShortModified(void); bool LongOpened(void); bool ShortOpened(void); };
Ordini simili
Professional AI Automation Trading Bot for Forex & Crypto
500 - 1500 USD
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
Informazioni sul progetto
Budget
30 - 500 USD
Scadenze
da 1 giorno(i)