[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 152
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
Vadim, can you code in Java?
Can someone post the simplest script to calculate the lot for a classic martingale: if the previous trade was closed with a loss, the next one opens with a double lot. I wrote it myself:
extern double Lot = 0.1; extern double MM_koef = 2; extern int magic = 56565;
double Lots=Lot;
{ OrderSelect(OrdersHistoryTotal(), SELECT_BY_POS, MODE_HISTORY); //verify the last order from the history
if( OrderMagicNumber() == magic
&& ( (OrderType() == OP_BUY && (OrderOpenPrice()-OrderClosePrice())<0) //for buy it means loss
|| (OrderType() == OP_SELL && (OrderOpenPrice()-OrderClosePrice())>0) //for sell it means loss
)
)
Lots=OrderLots()*MM_koef;Print(Lots);
}
if (Lots<=0) Lots=Lot;
....OrderSend(Symbol(), OP_BUY, Lots, .......
The autocalculation of lot on a Martin does not work, but is accepted equal to 0.1 for some reason? Can someone please tell me
here is something similar for your purposes at hand:
Can you please tell me why it's impossible to log in here https://www.mql5.com/ru/auth_login? I can't enter my username and password (the cursor doesn't blink or there is no cursor at all).
There's something wrong with you.
I tried it. Logged in without any problems.
There's something wrong with you.
I tried it. Got in without any problems.
What should I do, re-register? Or where do I go for help?
I would try restarting the computer first...)
Restarting didn't help
What is the reason why in the EA for OrderModify sometimes the modification is done automatically and sometimes the window is displayed and you have to press the button to confirm (the window that opens with F9 in MT).
There is just a line OrderModify(......) in the code and the above described logic is exactly not implemented.
I have a thought that if OrderModifu fails, the brokerage company will send a signal to open this window. Is it possible?