Where can I see this in the code?
Here's where the number of seconds is determined:
//+------------------------------------------------------------------+ //| Expert tick function| //+------------------------------------------------------------------+ void OnTick() { //--- if(!IsPositionExists()) { MqlDateTime STimeCurrent; TimeToStruct(TimeCurrent(),STimeCurrent); if(STimeCurrent.sec<40) return; //--- double cci[]; ArraySetAsSeries(cci,true); MqlRates rates[]; ArraySetAsSeries(rates,true); ...
If the seconds are less than 40, we just exit.
This change is included in version 1.002 (need to wait for republishing).
Dear Vladimir Karputov and Barabashkakvn,
First of all, I'd like to thank to both of you for sharing your EA.
I wold like to ask about the Input Parameter "Inp_ma_period" and "Inp_applied_price".
Does this mean that your EA use Moving Average too ?
Thank You.
No. This Expert Advisor does not use the Moving Average indicator. This EA uses the iCCI indicator.
For notation - see the iCCI help :
int iCCI( string symbol, // symbol name ENUM_TIMEFRAMES period, // period int ma_period, // averaging period ENUM_APPLIED_PRICE applied_price // type of price or handle );
Forum on trading, automated trading systems and testing trading strategies
Victor Volovin, 2018.12.09 19:15
Hi. I have set the possible number of positions of increasing volume in a row equal to 1 . The Expert Advisor increases three times.

What can be the reason?
Forum on trading, automated trading systems and testing trading strategies
Victor Volovin, 2018.12.09 19:50
Lot increase after a losing trade does not work

So maybe you should switch on the "Use martingale" block to make it work?
So maybe we should switch on the "Use martingale" block to make it work?
The screenshot shows that martingale is disabled.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use


CCI and Martin:
The EA based on iCCI (Commodity Channel Index, CCI) indicator plus managing position volumes using martingale.
The EA uses iCCI (Commodity Channel Index, CCI) indicator value on the last four bars and Open/Close prices on the last three bars. A position opening signal is checked if less than 20 seconds remain before closing the current bar (this is a very rare solution) and if there are no positions opened by this EA.
Position opening conditions
where:
Author: Vladimir Karputov