Hi, I tested it on a hedging account and saw that it always opens two orders in opposite directions. Is that right?
If so, what is the stochastic for?
Thanks
Hi, I tested it on a hedging account and saw that it always opens two orders in opposite directions. Is that right?
If so, what's the point of the stochastic?
Thank you
Decision block:
//+------------------------------------------------------------------+ //| Expert tick function| //+------------------------------------------------------------------+ void OnTick() { Trailing(); //--- if(IsPositionExists()) return; double array[]; if(iStochasticGet(MAIN_LINE,0,InpComparedBar,array)) { ArraySetAsSeries(array,true); if(array[0]<InpLevelUP && array[InpComparedBar-1]<InpLevelUP) { if(!RefreshRates()) return; double sl=(InpStopLoss==0)?0.0:m_symbol.Ask()-ExtStopLoss; double tp=(InpTakeProfit==0)?0.0:m_symbol.Ask()+ExtTakeProfit; OpenBuy(sl,tp); } if(array[0]>InpLevelDOWN && array[InpComparedBar-1]>InpLevelDOWN) { if(!RefreshRates()) return; double sl=(InpStopLoss==0)?0.0:m_symbol.Bid()+ExtStopLoss; double tp=(InpTakeProfit==0)?0.0:m_symbol.Bid()-ExtTakeProfit; OpenSell(sl,tp); } } } /
Hi thanks for the code.
there are 2 errors in compliling.
line 261 and 267
return(INIT_FAILED); Expression not boolean
Thanks
Hi thanks for the code.
there are 2 errors in compliling.
line 261 and 267
return(INIT_FAILED); Expression not boolean
Thanks
Version 1.001 ( EA Stochastic ) has been uploaded . Replaced the trading engine. Description (at least in the Russian part of the forum) updated.
Forum on trading, automated trading systems and testing trading strategies
Vladimir Karputov, 11.10.2019 12:32
Version 1.001 ( EA Stochastic ) has been uploaded . Replaced the trading engine.Description (at least in the Russian part of the forum) updated.
- www.mql5.com
How do I get the source code it's the first time using the code base platform
- 2015.09.24
- www.youtube.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
EA Stochastic:
Trading based on indicator iStochastic (Stochastic Oscillator, Stochastic). Stop Loss, Take Profit, and Trailing of a position can be enabled/disabled.
Author: Vladimir Karputov