Solo gli utenti che hanno acquistato o noleggiato il prodotto possono lasciare commenti
patrickdrew  

Looks good thanks.

Would be nice if you had some sets (and TF suggestions) for pairs already prepared. 

Also if you could explain the difference in the entries "aggressive / norma / fast, etc).

Br,

Patrick

Francisco Ezequiel Bessone  
patrickdrew #:

Looks good thanks.

Would be nice if you had some sets (and TF suggestions) for pairs already prepared. 

Also if you could explain the difference in the entries "aggressive / norma / fast, etc).

Br,

Patrick

Hi Patrick, first of all, note that Normal and Strong currently use the same value. I’ll publish an update with configurable thresholds so each user can set their own. 


Then the differences between the entry types (defined by the Trading_Trigger parameter) determine how sensitive the EA is to opening buy or sell positions based on the indicator. There are four entry types: Aggressive_Entry, Strong_Entry, Normal_Entry, and Fast_Entry. Each one adjusts the stochastic thresholds.


Aggressive_Entry (Entrada Agresiva)

Stochastic thresholds: Oversold ≤ 5.0, Overbought ≥ 95.0

Explanation: Uses very extreme thresholds, which means the stochastic must be very close to 0 (for buys) or 100 (for sells) to generate a signal. This makes entries rare, since the market seldom reaches these levels. However, when they occur, the signals tend to be more reliable because they indicate an extremely oversold or overbought market, which can precede strong reversals.

Ideal for capturing significant reversals in markets with extreme moves, but it generates fewer trades due to the demanding thresholds. Use with caution and in combination with filters (such as the secondary stochastic) to confirm the signal.


Strong_Entry

Stochastic thresholds: Oversold ≤ 15.0, Overbought ≥ 85.0

Less demanding than Aggressive_Entry. The EA opens trades when the stochastic is at moderate oversold or overbought levels, which occurs more often than in Aggressive_Entry. This produces more trades than Aggressive_Entry while still seeking strong signals, striking a good balance between frequency and reliability.

Suitable for markets with clear trends where pullbacks are noticeable but not necessarily extreme. Works well on pairs like EURUSD on lower timeframes.


Fast_Entry

Stochastic thresholds: Oversold ≤ 30.0, Overbought ≥ 70.0

Configured in OnInit with sto_min = 30.0; sto_max = 70.0. Uses looser thresholds, closer to the stochastic midpoint (50), which generates more frequent signals because the indicator does not need to reach extreme levels. However, this increases the risk of false signals, since the 30/70 levels do not always indicate clear reversals.

Useful in fast markets or with less extreme moves, ideal for aggressive scalping where you prioritize more trades, combined with additional filters (such as the secondary stochastic).

Francisco Ezequiel Bessone  
patrickdrew #:

Looks good thanks.

Would be nice if you had some sets (and TF suggestions) for pairs already prepared. 

Also if you could explain the difference in the entries "aggressive / norma / fast, etc).

Br,

Patrick


New version, Patrick, you can now customize your entries and exits much more precisely.

If you find effective setups, don’t forget to share them with the MQL5 community.

patrickdrew  
Francisco Ezequiel Bessone #:


New version, Patrick, you can now customize your entries and exits much more precisely.

If you find effective setups, don’t forget to share them with the MQL5 community.

Thank you for that. 

As the author - it would be nice if you has some effective setups to share....

Francisco Ezequiel Bessone  
patrickdrew #:

Thank you for that. 

As the author - it would be nice if you has some effective setups to share....

Thank you for your interest Patrick
I have to be clear: there is no single “best” setup for this EA.

Every configuration depends on the instrument, the timeframe, the risk tolerance of the trader, and most importantly the tests each one runs in the Strategy Tester and in demo.

I encourage all users to:

  • Run their own optimizations with realistic spreads, slippage, and broker data.

  • Share their results, presets, and experiences directly through the MQL5 product comments.

That way the whole community benefits from seeing different approaches and outcomes.

At the moment, I am testing different options with the second stochastic confirmation, and I also have plans to include a third confirmation filter in future updates.

On the 5-minute timeframe, I may see sell signals when %K and %D are in the overbought zone. But if I switch to the 15-minute chart, the same movement could be showing the Stochastic still high in overbought, which means that the trade I opened on M5 will largely depend on volatility and the direction of the broader trend.

Keep in mind that M15 is equivalent to 3 M5 candles, and M30 is equivalent to 6 M5 oscillations. That means smaller timeframes often move up and down inside the structure defined by higher timeframes.

For example: if on the 1-hour chart the Stochastic is below 10 (oversold), it is very likely that during the next hour it will move towards values above 60. All the lower timeframes (M30, M15, M5) will then oscillate following that broader hourly bias.

This is why adding second or even third stochastic confirmations in different timeframes can filter out weak entries and align trades with the dominant trend.

Francisco Ezequiel Bessone  
Example configuration (for testing purposes only)
Each trader must adapt these values to their instrument, timeframe, and risk profile. Please remember: always validate in Strategy Tester and demo before live trading.
Author's note
I am currently testing different options with the second stochastic confirmation (M15) and I plan to add a third layer of confirmation in future developments. This will allow filtering entries more effectively and aligning them better with the trend of higher timeframes.

--------
; General
InstanceTag=
EnableIndicator=true
WaitForClose=false

; Trading Stoch Trigger (main entry filter)
Stoch_K=14
Stoch_D=3
Stoch_Slowing=3
Stoch_Oversold_Level=20.0
Stoch_Overbought_Level=80.0
EntryStoch_TF=5    ; Main trigger on 5m

; Confirmation Stoch Filter (secondary filter)
UseSecondaryStoch=true
Sec_Stoch_K=14
Sec_Stoch_D=3
Sec_Stoch_Slowing=3
SecStoch_TF=15     ; Secondary confirmation on 15m
SecStoThreshold=50.0

; Exit of Stoch Trade
Stochastic_Exit=1
Exit_Only_If_Positive=true
Exit_Stoch_K=14
Exit_Stoch_D=3
Exit_Stoch_Slowing=3
Exit_Oversold_Level=40.0
Exit_Overbought_Level=60.0
ExitStoch_TF=5

; Trading
EnableTrading=true
Trade_Lots=0.05
MaxSpreadPercent=0.1
MaxTickAgeSec=3
SlippagePoints=100
MagicBase=96543210
ManageAllPositionsOnSymbol=false

; Stop Loss and Take Profit Options
EnableSL_Pips=false
SL_Pips=150.0
EnableSL_Pivots=false
EnableTP_Pips=false
TP_Pips=100.0
EnableTP_Pivots=true
Pivot_Left=3
Pivot_Right=0
Pivot_Lookback=15
Pivot_Mode=1
SL_OffsetPoints=0.0
TP_OffsetPoints=-15.0

; Advanced Risk Management
EnableTrailingSL=false
TrailingStartPips=50.0
TrailingStepPips=10.0
EnableBreakeven=false
BreakevenPips=50.0

; Positions
MaxPositionsPerSym=2
MaxBuyPositionsPerSym=1
MaxSellPositionsPerSym=1

; Time Filter
UseAllowedServerHs=false
AllowedServerHsFrom=2
AllowedServerHsTo=22

; Extra filters (optional)
MinATRPoints=0.0
MinATRtoSpread=0.0
MaxSpreadPctOfATR=0.0
EntryCooldownSec=0
MinTickVolume=0

; Server Time Display
ShowServerTime=true
ServerTimePos=2
ServerTimeX=20
ServerTimeY=20
ServerTimeFontSize=11
ServerTimeColor=0
ServerTimeFont=6

526066  

hi its a great Bot and excellent work done. i need one clarification that when we use TP and exit in profit only still it closes the psotion in loss when opposite side signal/tradeappears. can we have a clarfication on the settings . As i want to keep my buy or sell position open untill they are closed in profit. let me know we can connect for professional assistance aswell

Francisco Ezequiel Bessone  
526066 #:

hi its a great Bot and excellent work done. i need one clarification that when we use TP and exit in profit only still it closes the psotion in loss when opposite side signal/tradeappears. can we have a clarfication on the settings . As i want to keep my buy or sell position open untill they are closed in profit. let me know we can connect for professional assistance aswell

Hi, it closes at a loss because exits can be triggered by logic other than TP. Opposite signal does not force a close by itself, but your Stochastic Exit, SL, Breakeven, or Trailing can.

“Exit only if profit” affects only the Stochastic Exit, not SL/BE/Trailing.

Please share one concrete case so I can trace it:
Pair:
Date (YYYY-MM-DD) and exact time of the close (broker server time):
Confirm settings: only Stochastic_Exit was enabled with Exit_Only_If_Positive = true, and all SL/Breakeven/Trailing/ProfitTime options were disabled.


Thanks for your message. I don’t offer one-on-one assistance. I’m self-taught and don’t feel qualified to provide formal consulting. Please leave your questions, suggestions, and opinions here, and we can work through them together. My time is very limited and this is not my main activity.

If you find the EA useful, please leave a rating and a short review. Your feedback is important to me and helps prioritize improvements.
Solo gli utenti che hanno acquistato o noleggiato il prodotto possono lasciare commenti