View Single Post
  #22 (permalink)  
Old 04-06-2006, 07:01 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by firedave
Hi codersguru, just a small question. How do you define the MagicNumber variable on your function ? I mean is it some kind of global variable definition ? Thank you in advance
hi firedave,

I define it on the top of the expert code (before the main functions start() , init() and dinint() :

PHP Code:
//--- Global variables
int      MagicNumber 101090;
string   ExpertComment "PriceCross"
to make it in the global scope and the every line in the expert code can use it.

When the contest starts the code will be availabe! I'm sorry for that!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote