Hello Footon,
Please try the following:
- Add your file-name.mqh in the `C:\Program Files\Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com` folder.
- FSB Pro will import the content after a line containing: //## Import Start
- Add the file name in the import list in `FSB_Expert_MT4.mq4`. Do that among the other import files between lines 102 - 117.
file-name.mqh
This will not be imported !!!
//## Import Start
;; FOO
;; This is imported :)
FSB_Expert_MT4.mq4
//##IMPORT Logger.mqh
//##IMPORT StrategyTrader.mqh
//##IMPORT file-name.mqh
//##IMPORT ActionTrade4.mqh
FSB Pro will include the necessary content in the exported expert at the proper place:
Exported expert:
double stoploss = moneyrisk / (lots * tickvalue) - spread;
return ((int) MathRound(stoploss));
}
//+------------------------------------------------------------------+
;; FOO
;; This is imported :)
#define TRADE_RETRY_COUNT 4
#define TRADE_RETRY_WAIT 100
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
class ActionTrade
Please open some of the standard mqh files to see how the "//## Import Start" tag is used. The purpose of this tag is to make possible the MQH files to be used in both FSB Pro and MT. (Because MT requires file intro not needed in FSB Pro )