• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Suggestion I will make a Free EA with your Indicator

How the Expert Advisor Works with the Indicator

  • Indicator File Placement: Place T4L Stochastic Signal.ex4 inside the MQL4/Indicators directory. The EA references this file name directly via the IndicatorName input parameter.
  • Signal Reading (iCustom Function):
    • The EA reads the custom indicator values on every new bar using iCustom().
    • It queries Shift = 1 (the most recently closed candle) to ensure signals are fully confirmed and avoid false triggers caused by real-time candle repainting.
    • BuyBufferIndex (default: 0) checks for buy arrow values.
    • SellBufferIndex (default: 1) checks for sell arrow values.
  • Entry Logic:
    • Buy Trade: Triggered when the buy buffer returns a valid value (!= EMPTY_VALUE and > 0) on the previous candle.
    • Sell Trade: Triggered when the sell buffer returns a valid value (!= EMPTY_VALUE and > 0) on the previous candle.
  • Trade Management:
    • Opposite Signal Handling: If CloseOnOpposite is set to true, incoming buy signals immediately close any open sell orders, and incoming sell signals close any open buy orders.
    • Risk Controls: Each executed order applies the specified LotSize, StopLoss (converted to points automatically for 3/5-digit brokers), and TakeProfit.
    • Order Filtering: Orders are tagged with a unique MagicNumber so the EA only manages its own trades without interfering with manual positions or other robots.
 

Attachments

Back
Top