[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 886

 

I'm a newbie, please don't be too hard on me.

I am trading on demo. I have seen my report and cannot understand what is going on:

Deposit/Withdrawal: 5,000.00

Closed Trade P/L: 2,135.43

Balance: 5,970.53

Equity:5 970.53

Free Margin:5 970.53

What happened to 1164 USD?

 

Hello.

Help for a newbie. I started to learn mql from the tutorial, reached the operators and decided to write a shape counter:

int start()
{
int i=0;
double A= 0.0100,
B=0.0100,
price=Bid;

//----
while (A<=price){

A=A+B;
i++;}
if(A==price)
{
Alert("new Figure",i, "price", price);
}


//----
return(0);

}

Shapes counts, but when A gets a value equal to price? it doesn't give a message.

Where's the mistake? I don't get it.

 
I'm going to smash my monitor for sure))
 
int start()
{
int i,I;
double A= 0.0100,
B=0.0100,
price=Bid;

//----
while (A<=price)
{
A=A+B;
i++;
if(i*B==Bid)
Alert ("New figure",i);
}

//----
return(0);

}

this doesn't work either

 
Jonivator:

I am a newbie, please don't be too hard on me.

I am trading on demo. I have seen my report and cannot understand what is going on:

Deposit/Withdrawal: 5,000.00

Closed Trade P/L: 2,135.43

Balance: 5,970.53

Equity:5 970.53

Free Margin:5 970.53

And what happened to 1164 USD?

Ugh! Everything seemed to be in order in 5 minutes. I don't know how such tricks happen.

 

Hi!

I want to say thank you for all your help - I've got it figured out!

Thanks to your hints, it's come to me like a giraffe ))))))) .

 

I have a question, how can I make sure that no one can ever find out and see the code inside the Expert Advisor? (and the indicator code, too)

I would like to ask you a question - how do I ensure that the Expert Advisor and the indicator work together smoothly?

 
int start()
{double i,
q;
//----
for(i=0.01;i<=Bid;i=i+0.01)
{
q++;
if(i!=Bid)continue;
if(i==Bid)
{Alert ("new",q);
}
}

//----
return(0);

}


//-------------------------------------------

?maybe like this

 
belck:

I have a question, how can I make sure that no one can ever find out and see the code inside the Expert Advisor? (and the indicator code, too)

I would like to ask you a question - how do I ensure that the Expert Advisor and the indicator interact smoothly?

Have fun.
 

It gave me this:

2010.10.05 17:00:10 robot5 EURUSD,H1: Error: 0

How do I know what is wrong?

Reason: