a solution for the magic number generator would be to replace the following sentence:
Code: Select all
/---------------------------------------------------------------------
//---------------------------------------------------------------------
// GenMagic function
// @desc Generates a unique magic number (hash)
// @param string suffix additional suffix to create different magics for different style trades
// @return int returns the unique magic number
int GenMagic(string suffix="")
{ int m;
// string s=Symbol()+"_"+suffix;
string s=StringConcatenate(AccountNumber(),"_",suffix);Because this will generate the same number for all charts.
Regards
José Luis