Experts: Ambush

 

Ambush:

The Expert Advisor uses Buy Stop and Sell Stop orders to trade news and large price movements.


Author: Vladimir Karputov

 
Automated-Trading:

Ambush:

Author: Vladimir Karputov

Good afternoon, and the lot as exhibited, something is not visible?

 
astromer:

Good day, how is the lot set, something is not visible?

It trades (or rather places pending orders) with the minimum lot of a given symbol - it is written strictly in the code, without putting it in the input parameters.

 
Vladimir Karputov:

It trades (or rather places pending orders) with the minimum lot of the given symbol - this is fixed in the code, without putting it in the input parameters.

And you can't change it?

 
astromer:

Thanks, m_symbol.LotsMin() on Lot.

 

Automated-Trading:

Ambush:

Can you please tell me how to activate

on a real account?

 
nik-2:

Automated-Trading:

Ambush:

Please tell me how to activate

on a real account?

This is an open code - there is no concept of "activate" in it. You need to download the code and run it in MetaTrader 5 terminal.

 
Vladimir look what situation on the demo version in the tools I see how he places pending orders and on the chart I also see wandering stop lines and profit lines and when he opens and closes a deal I also see it on the chart on the real version he does not place pending orders and in the Expert Advisor on the toolbar he writes 2018.04.18 16:28:54.010 Ambush (SBER,M1) Sell_STOP -> false. Result Retcode: 10035, description of Retcode: invalid order help please .

 
nik-2:
Vladimir look what situation on the demo version in the tools I see how he places pending orders and on the chart I also see wandering stop lines and profit lines and when he opens and closes a deal I also see it on the chart on the real version he does not place pending orders and in the Expert Advisor on the toolbar he writes 2018.04.18 16:28:54.010 Ambush (SBER,M1) Sell_STOP -> false. Result Retcode: 10035, description of Retcode: invalid order help please .

This error means that Sell Stop pending order type is currently prohibited on this symbol.

 
So he writes this error to me all day long, but I go back to the demo account and everything goes well, everything trades perfectly.
 
I'll try changing the instrument now.