Download MetaTrader 5

What's the mean of the code in "ExpertSignal.mqh"?

To add comments, please log in or register
Wei Sun
699
Wei Sun  
//+------------------------------------------------------------------+
//| Macro definitions.                                               |
//+------------------------------------------------------------------+
//--- check if a market model is used
#define IS_PATTERN_USAGE(p)          ((m_patterns_usage&(((int)1)<<p))!=0)
How I set m_patterns_usage?
Stephen Njuki
5206
Stephen Njuki  

Hi bcsunwww

I suspect that has to do with the number of potential buy/ sell patterns you can have within a single signal.

However I seem to have run into a slightly different problem. Am trying to use limit orders by setting the m_base_price in the long & short conditions. Because the limit distance is indicator based, I have left price level to execute deal (Signal_PriceLevel) at 0.0. The problem is once I run a test, I seem to place only market orders. My question to metaquotes or any body familiar with this is, how can I place limit orders whose entry distance is indicator based?


Stephen Njuki
5206
Stephen Njuki  
How do you trail pending orders with the new standard library?
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
To add comments, please log in or register