[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 400
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Can someone please tell me where to put the account number for the EA to work only on this account respectively.
int start()
{
if(AccountNumber()!=123) return(0);
Thank you in advance for your help.
Who can explain why in the code
int start() // Special function start
{
double proc=0;
int i; // Bar number
double Minimum=Bid, // Minimum price
Maximum=Bid; // Maximum price
for(i=0;i<=50-1;i++) // From zero (!) to.
{ // ...Quant_Bars-1 (!)
if (Low[i]< Minimum) // if < known
Minimum=Low[i]; // it will be min
if (High[i]> Maximum) // if > known
Maximum=High[i]; // it will be max
}
double seredina = (Minimum+Maximum)/2;
proc=(Maximum-Minimum);
Comment("Maximum price==",Maximum,
"\n", "Minimum price==",Minimum,
"\n", "middle==",seredina,
"\n", "Percent=30",proc);
return; // Exit start()
}
proc is equal to 300.0012 though proc is maximum minus minimum
with maximum correct, minimum correct, middle correct.
???????
However, if I make proc=2+2;
terminal replies with 304 !!!!! What's the problem ?????
"\n","Процент=30",proc);
At the same time, if I do proc=2+2;return; // exit start()
the terminal replies with a 304 !!!!! What's the problem ?????
Please tell me why tester doesn't optimize Expert Advisor
I select multiple input parameters, check a checkbox to optimize ... I press start Optimization ends quickly and gives me 1/1, the journal says There were 1 passes done during optimization, 1 results have neing discarded as insignificant
I tried it in 5 different broker terminals, please advise what i am doing wrong.
Hi all, Can you advise me, the task is to make PlaySound when an order with profit > 0 appears in histories. Apparently something like if ((OrderCloseTime == current time) &&(OrderProfit > 0)), but I cannot figure out how to write it (comparing close time to current time). Please help.
You know, I've updated the initial sketches of the first chapter of the EA, and now the compiler swears, they are not balanced brackets, I do not know English, but it swears so
'\end_of_program' - ending bracket '}' expected C:³³ MF Trader 4\documents³experts³ for lavin.mq4 (59, 1)
'\end_of_program' - unbalanced left parenthesis C:\TradeForm MF Trader 4/CDocuments/experts/ for Levine.mq4 (59, 1)
It would be OK, the brackets are balanced, I am recalculating them one by one! Many times. 10 times on Friday, and three times today.
Folks, help!!! Either I'm stupid, or there's a deeper problem, please!
Code
{X++;точка с запятой}
Nah, moved the semicolon inside the brackets of course, it swears like this
'\end_of_program' - unbalanced left parenthesis C:\TradeFormat MF Trader 4\documents\experts\for the lavin.mq4 (59, 1)