Experts: N-_Candles_v6 - page 2

 
narkad1212:

Yes in the deposit currency. So that when profit is reached, all orders are closed and the cycle starts again.


That is, either closing on the lousy sheep, or if the specified monetary profit is reached, whichever comes first.

Okay, I will add such a parameter.

 
Have you posted the source code for the N candles EA for any version

 
Mwinnga Ngandu :
Have you posted the source code for the N candles EA for any version

Each version has its own code:

The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones. The EA checks if the account is netting or hedging. The CPositionInfoCTradeCSymbolInfo and CAccountInfo trade classes are used in the code.

Documentation on MQL5: Standard Library / Trade Classes / CPositionInfo
Documentation on MQL5: Standard Library / Trade Classes / CPositionInfo
  • www.mql5.com
Standard Library / Trade Classes / CPositionInfo - Reference on algorithmic/automated trading language for MetaTrader 5
 
Thanks sir.