Hi,

in this code:
Code:
//#define ALL_SYMBOL
//#define INDEX


#define _LONG 1
#define _SHORT 2
#define _WRONG -999

#define SAVE1 AlgoVar[0]
#define SAVE2 AlgoVar[1]
#define E_TRADE_L AlgoVar[2]
#define E_TRADE_S AlgoVar[3]

#ifdef ALL_SYMBOL
	#define SYMBOLS "EUR/USD","AUD/USD","USD/JPY","USD/CAD","GBP/USD"
	#define SYM1 "AUD/CAD","AUD/CHF","AUD/JPY","AUD/NZD","CAD/JPY","EUR/AUD","EUR/CAD"
	#define SYM2 "EUR/GBP","EUR/JPY","EUR/NZD","GBP/AUD","GBP/JPY","GBP/NZD","NZD/USD"
	#define SYMBOLS SYM1,SYM2,"USD/JPY","GBP/USD","EUR/USD","USD/CAD","AUD/USD"
	#define ALGOS "M15","H1","H4"
	#define BASE 15

#else
	#ifdef INDEX
		#define SYMBOLS "GER30"
		//,"NAS100","SPX500","UK100","US30"
		#define ALGOS "M15"
		#define BASE 5

	#else 
		#define SYMBOLS "EUR/USD"
		#define ALGOS "M15"
		#define BASE 15

	#endif
#endif



SYMBOLS not "EUR/USD" but "GER30". In the preprocessor cannot be included #ifdef inside other?

version: 1.74.8

Last edited by Grat; 02/05/18 09:40.