[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 897

 
I can't disassemble it myself yet. Help!!!
 
Dimka-novitsek:
Please help! The Expert Advisor is not working, not trading at all.

What would it take to help?

I don't mind helping and someone else doesn't mind helping. it's just hard to help - without seeing the code or error that is displayed!

 

Hi all.

Does anyone know how to set an indicator in MT4 to count profit in pips from a certain time?

 
The code is on the previous page. The error is that it does not trade, does not place orders.
 
Dimka-novitsek:

I have just made up an EA, I keep training, everything is getting faster each time, but it is not trading!

If you can, please advise, I think I will be in touch.

//+------------------------------------------------------------------+
//| Dimon's Borders .mq4 |
//| Copyright © 2010, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+

I apologize for the non-English variables, it is a lot easier for me to remember what to do.

If you put it in English, it will work. Unless you've made a mistake somewhere else. the text should be in English letters!!!!!
 
How can I set MT4 to calculate profit in pips from a specific time?
 
Right, I'll fix it. But does it really matter?
 
Dimka-novitsek:
Right, I'll fix it. But does it really matter?
It does matter. Only English letters should be present in the advisor!
 
Same situation.
 
arvis:
How can I set the indicator to count profit in pips from a certain time in MT4?

I can give you a suggestion as an option:

double Profit = (Ask - signal); // signal это уровень цены с которого вы начинаете считать 

или
 
double Profit = (signal - Ask); // signal это уровень цены с которого вы начинаете считать 

or try it this way:

 double Profit; // или double Profit = 0;

int start {

if (Ask > signal) {

 Profit = (Ask - signal);

return (Profit); 

} 

 if (Bid < signal) {

 Profit = (signal - Bid);

return (Profit); 

} 

}