whats problem - page 2

 

i dont need print , i want define lot value, that depends on  the symbol that i runed expert on it

Files:
1.mq4  23 kb
 
ejmin ejoni:

I have deleted your other topic.

When you are discussing the same code, do not try to discuss it over multiple topics.

 

sorry but any one answered me here from yesterday

 
Keith Watford:

I have deleted your other topic.

When you are discussing the same code, do not try to discuss it over multiple topics.

 i checked my mql4 version is 5 build 2376 and my mt4 version is 4 1330, i run this expert in xau usd chart, but it comments me function, whats the problem?

#property strict
input float dollar = 1;// DOLLAR
double lot;
//+------------------------------------------------------------------+

void OnTick()
  {
   if(Symbol() == "EURUSD" || Symbol()== "GBPUSD" ||Symbol() ==" NZDUSD" || Symbol() == "AUDUSD" || Symbol() == "XAGUSD" || Symbol() == "XAUUSD ")
     {
      double lol=  dollar  / (iATR(Symbol(),60,260,0)* pow(10,5));
      while(lol >= 0.01)
        {
         lot = lol;
         Comment("sajsd");
         break;
        }

      while(lol < 0.01)
        {
         Comment("YOUR DOLLAR AMOUNT IS SO LOW ");
         continue;
        }
     }
     else
     {
     Comment("SADADED   "  +  __FUNCTION__);
   }
  }
 

Print the chart symbol to be sure what it is.

Symbol() == "XAUUSD "

I don't know if it will be accepted with the additional space.

 
Keith Watford:

Print the chart symbol to be sure what it is.

I don't know if it will be accepted with the additional space.

THANK U SO MUCH