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

 
//+------------------------------------------------------------------+
//| 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?
 

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?


 
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
Reason: