Ea with conditions that can vary in timing

To add comments, please log in or register
Malleetrader
16
Malleetrader  
Hi! Non coder newbie here so it may be simple to do this.....sorry. 

I want to create an ea based on a candlestick pattern and an ea cross but I need the timing for the cross to be flexible in timing (as in within say 5 candles of the pattern). Is this possible?  I must confess I use EAbuilder because I have no idea of coding so any help would be awesome. TIA
William Roeder
20064
William Roeder  
  1. There is no such thing as "an EA cross." Lines cross, not EAs. Only if you can write a concrete critia, can you write code.

  2. EA builder, EATree, Etasoft forex generator, Forex Strategy Builder, FOREXEADVISOR STRATEGY BUILDER, FX EA Builder, fxDreema, FxPro, Molanis, Online Forex Expert Advisor Generator, Strategy Builder FX, Strategy Quant, Visual Trader Studio, MQL5 Wizard, etc., are all the same. You will get something quick, but then you will spend a much longer time trying to get it right, than if you learned the language up front, and then just wrote it.
    • Since you haven't learned MQL4/5, therefor there is no common language for us to communicate.
      If we tell you what you need, you can't code it.
      If we give you the code, you don't know how to integrate it into yours.
      We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds of lines of code. You are essentially going to be on your own.

    • EA builder makes bad code counting up while closing multiple orders.
      EA builder makes bad code Bars is unreliable (Max bars in chart), volume is unreliable (miss ticks.) Always use time.
      EA builder makes bad code, not adjusting for 4/5 digit brokers, TP/SL and slippage.
      EA builder makes bad code, not adjusting for ECN brokers. pre-Build 500)
      EA builder makes bad code, not
      checking return codes.

    • EATree uses objects on chart to save values — not persistent storage (files or GV+Flush.) No recovery (crash/power failure.)

    • FX EA Builder makes bad code, not checking return codes.
      FX EA Builder makes bad code, loosing open tickets on terminal restart. No recovery (crash/power failure.)
      FX EA Builder makes bad code, not adjusting stops for the spread.
      FX EA Builder makes bad code, using OrdersTotal directly.

    • FOREXEADVISOR STRATEGY BUILDER makes bad code, non-updateing global variables.
      FOREXEADVISOR STRATEGY BUILDER makes bad code, compilation errors.
      FOREXEADVISOR STRATEGY BUILDER makes bad code, not checking return codes.

    Learn to code it, or pay someone (Freelance) someone to code it.
              Hiring to write script - General - MQL5 programming forum
Malleetrader
16
Malleetrader  
Ok thanks for the advice. Can I clarify by  asking if it’s possible for a trade to triggered by an EA when 1. A candlestick pattern is formed and 
2. The candlestick crosses either above or below an exponential average of 6-10 candlesticks within a set time(eg 2-6 candlesticks).
I’m not asking for someone to code it for me for free I am merely asking if it’s possible to code it. 
Ahmad Zuhairdi Noh
2066
Ahmad Zuhairdi Noh  

Malleetrader:

if it’s possible to code it.

Yes, it is possible. Here is the idea:

  1. Candlestick pattern can be recreated by using iHigh, iLow, iClose, and iOpen value.
  2. You can use "shift" in iMA to read the previous 6-10  candlestick and identify the crossover or you can use iBarShift to set a trigger for next few 2-6 candlestick.

Since you already have the objective (this EA), learning to code will be much faster for you. Use this project as a stepping stone to learn and discover more in MQL4 and MQL5.

Good luck.

To add comments, please log in or register