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
So you can't move it yourself, only through a ratio, right?
You can... >> the size of the lot.
Is it possible to set such a lot (0.01) in Metatrader and if yes, how? I have only 0.1 there, no less, or the only way out in my situation is to add up to 200 quid and no other way?
I beg your pardon - DC is what???
And then why on the same MT I'm on it all worked and at 174 bucks, as I said before???
Excuse me - DC is what?
A dealing centre... your "firm".
And then why on the same MT I'm on now everything worked and at 174 bucks like I said before???
Ha-ha))))))))))))))))rassmashtli, really!!!
Talking to you has been very helpful, I've already found and redone everything and it's all working out for me, so THANK YOU SO much !!!
Just one more question - is there a forum thread where newcomers can ask questions "Pprokachenym" that if something - I will write there ???
Please advise how to close the order without nulling OrderOpenPrice()? What should I do to make my EA work correctly?
extern double MM=200.00;
extern double my_lot=0.01;
//+------------------------------------------------------------------+
int start()
{
int total=OrdersTotal();
if(OrderSelect(0, SELECT_BY_POS, MODE_TRADES)==true)
double P=OrderOpenPrice();
if(total==0 && Ask > P)
{
OrderSend(Symbol(),OP_BUY,my_lot,Ask,3,Ask-MM*Point,Ask+MM*Point,NULL,0,0,CLR_NONE)
}
else
{
if(total==0 && Ask < P)
{
OrderSend(Symbol(),OP_SELL,my_lot,Bid,3,Ask+MM*Point,Ask-MM*Point,NULL,0,0,CLR_NONE)
}
}
return;
}
Just one more question - is there a forum thread where newbies can ask questions to "Prokachennye", so if anything - I will write there ???
I don't know... But you can create it...
Igor Viktorovich, please advise how to make OrderOpenPrice() not reset when order is closed? What should I do to make my EA work correctly?
Alex, you'd better write what you need.
Alex, you'd better put into words what you need, make a problem statement.
If an order is closed by TekeProfit, it should open bay again, and if it is closed by StopLoss, it should open sell, etc.
If the order is closed by TekeProfit, it should open again bay, and if it is closed by StopLoss, it should open sell, etc.
yep... I see...
If you enable the Expert Advisor, the bay will be opened if there are no trades in the history. And the rest will be as you asked, i.e. after take profit it will continue trading in the same direction, and after stop triggering it will reverse.
We have used the following functions to develop our EA:
- ExistPositions()
- GetNameOP()
- GetNameTF()
- GetTypeLastClosePos()
- IIF()
- isCloseLastPosByStop()
- ModifyOrder()
- OpenPosition()
Uh-huh... I see...
When you enable the EA, Buy will open if there are no trades in the history. And the rest will be as you asked, i.e. after take profit it will continue trading in the same direction, and after stop triggering it will flip.
The following functions have been used during development of the Expert Advisor:
Thank you very much Igor Viktorovich, once again I am amazed by your knowledge!!!