Experts: VR---SETKA---3 - page 2

 
astrologer Аполонов:

Thanks, I read it. But I need the Expert Advisor to close a trade after exceeding the specified number of X orders, each time it returns to the level of the previous order.

Let's say I want to use no more than 10 on one currency pair, and as soon as the EA takes the 11th order and returns to the opening level of the 10th order, the 11th order should close.

Sorry, this is the third time I'm writing. This time I am writing for the last time:

Forum on trading, automated trading systems and testing trading strategies

Expert Advisors: VR---SETKA---3

Vladimir Karputov, 2018.12.24 08:55 AM

This code does not work with pending orders and was never intended to work with pending orders.


 
astrologer Аполонов:

Thanks, I read it. But I need the Expert Advisor to close a trade after exceeding the specified number of X orders, each time it returns to the level of the previous order.

Let's say I want to use no more than 10 on one currency pair, and as soon as the EA takes the 11th order and returns to the opening level of the 10th order , the 11th order should close .

An order can only be deleted, but not closed - it is not a position.

 
Vitaly Muzichenko:

An order can only be deleted, but not closed - it is not a position.

Got it. I wrote it wrong. This is what Vladimir wanted to tell me about pending orders...

by the word order I meant a position

 

thank you .. your experts are very helpful.

but how to add the value of Stop Lost S / L to minimize losses if the movement of the graph leads to the opposite ... thanks

 
Kukuh Tri Handoko :

thank you .. your experts are very helpful.

but how to add the value of Stop Lost S / L to minimize losses if the movement of the graph leads to the opposite ... thanks

It is recommended to enable martingale in the settings.

 
Good evening. Is it possible to add to the Expert Advisor the function of stopping it when Take Profit is reached ?
 
ErEsti:
Good evening. Is it possible to add a function to the Expert Advisor to stop it when Take Profit is reached ?

I think it is possible.


Added: VR---SETKA---3_v2

Added in version 1: VR---SETKA---3

Added in version 2:

by request added parameter "CloseProfit" - closing all positions when the specified profit CloseProfit is reached ?

VR---SETKA---3_v2
VR---SETKA---3_v2
  • www.mql5.com
Этот советник я писал исходя из собственного опыта торговли, понимая, что рынок и цена — это хаос, в котором нет законов и нельзя гарантировать, что через минуту будет падение или рост. Но зато в этом хаосе есть один железный закон, который никогда не изменится: в хаосе не появится закономерных постоянных последовательностей, то есть, хаос и...
 
Comments not related to this thread have been moved to "Advisors: VR---SETKA---3_v2".
 
Vladimir Karputov:

I think it's possible.


Added: VR---SETKA---3_v2

Would add more fixation of the loss in the percentage of drawdown from the balance, the drawdown reached a certain value, all orders are closed, similar to the profit.

 
Yuriy Suslov:

We would add more fixation of the loss in the percentage of drawdown from the balance, the drawdown reached a certain value, all orders are closed, similarly to the profit.

Your suggestion cannot be implemented, as a pending order cannot be closed, a pending order can only be deleted.

And most importantly: this EA does not work with pending orders.