Magic Number/Separate the Different EA's
-
It's not any of the blocks. It's that you have checked some of the parameters to be Input parameters for MT5. In this case you have to edit them via MT5's "Input" tab. It's right to the "Settings" tab, just before "Results".
-
So what should I do to make it work ?
-
I took away the 'input' fields in the block.
Works great now.Thank you VERY much !
(And sorry for that). -
Hi Trendking,
you asked some things about the MAgicnumber and how to user the same EA on different charts. I've found some code for assigning a MagicNumber to an EA. Just create a new library and put this code in it:
int Magic,MagiCal[5],Mcar; double mNr; string StrMagic; for(Mcar = 1; Mcar < 5; Mcar++) {MagiCal[Mcar] = StringGetChar(Symbol(), Mcar);} //change char from symbol to number StrMagic = MagiCal[1] + "" + MagiCal[2] + "" + MagiCal[3] + "" + MagiCal[4]; //sort number in string mNr = StrToDouble(StrMagic); //make string to double | while double is bigger then integer if(mNr > 999999999) {mNr = mNr / 10;} //maximum of integer = 2ґ147ґ483ґ647 is bigger then 999ґ999ґ999 make / 10 if(mNr > 9999999999) {mNr = mNr / 100;} else { Magic = NormalizeDouble(mNr, 0);//make double to integer } MagicStart = Magic; ~next~So you get a different MN on different charts but not when you use the EA on the same pair!
see you