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

 

And hello again !!!!!!!!!!!!!

Let me repeat myself......................................... On this page, just above, asked a question about two pieces of code.......YOUR Opinion SPECIES..........................

Don't forget the sufferers...............................

 

Oops, that's a different page now((((((((((((((((((((((

So pg. 57

 
komposter >> :

Objects are created with ObjectCreate(), good luck.

>> Thank you.

 
Reshetov >> :

if (OrderProfit() < 0) {

...

}

Yes, it's understandable, I didn't say it that way. I wanted to add Martingale to one of my strategies, an ordinary one, which multiplies each lot by two if I lose. When I do it manually, I get profit, which is quite stable as entries are quite accurate, I want to check how it will work on automatic and if I am not mistaken, to run it through the history. I do not understand how to choose the right orders that have already been executed and closed, if I had two, it would be more understandable, but if I have more I cannot figure out what to do here, maybe somebody will give me a hint or a link to a piece of code.

 
Dimoncheg >> :

I'm not sure how I meant it, but it's not quite right. I wanted to add Martingale to one of my strategies, an ordinary one, that multiplies every next lot by two if I lose. When I do it manually, I get profit, which is quite stable because entries are quite accurate, I want to check how it will work on automatic and I am not mistaken. I do not understand how to choose the right orders that have already been executed and closed, if I have two, it seems to be clear, but if I have more, I don't know what to do here, maybe somebody will tell me or give me a link to a piece of code

If I wanted to try to trade by martingale, it would be much easier, not to re-invent the wheel, but to take one of the ready-made Expert Advisor and see how it is implemented.


Universum 3.0, for example


 
Dimoncheg писал(а) >>

I'm not sure how I meant it, but it's not quite right. I wanted to add Martingale to one of my strategies, an ordinary one, that multiplies each lot by two if I lose. When I do it manually, I get profit, which is quite stable, because entries are quite accurate. I do not understand how to choose the right orders that have already been executed and closed. I should have two more orders, but I have no idea what to do with them, maybe somebody will give me a hint or provide me with a link to such a piece of code

'Any newbie's question, not to clutter up the forum. Professionals don't pass by. Can't go anywhere without you.'

 
Dear Professionals !!! Hello...... Allow me to remind you of my existence on the forum and my question above (reminder above, and the question itself on page 57). Don't drop.......................... WITHOUT YOU THERE IS NO WAY........................))))))))))))))))))))
 
igrok2008 >> :

Hello

Just off the top of my head. I didn't really get into the terms, but there doesn't seem to be any intersection in the second option.

One more thing -- the OrderSend function returns an int type ticket, so it's correct to check for success like this:

if (OrderSend(......) > 0)
{
   //...
}

In your case, you need to check for incorrectness:

if (OrderSend(......) <= 0)
{
   Print("Error opening order", GetLastError());
}

______

Yeah, I don't know about others, but I find the word "specialists" a bit mocking. Maybe that's why you haven't heard back for so long. ;)

 

I apologize in advance if I'm asking a question I've asked a hundred times before, I've honestly searched the forum but haven't found what I'm looking for...

In the terminal settings, in the publishing tab, there is an option to save a trade report on an ftp-server. Is there any way to save a detailed report?

 
You can, change the name of the itemised report to a regular report and you're good to go
Reason: