hi dear coders, my funny english description as the rules in text bellow is here in the video, where you can see chart and how I am trading it. https://youtu.be/QETKG9sYM0s I would like to have TD sequential indicator logic as part of EA for fast optimization. rules: BUY (True/false) SELL (True/false) optimized timeframes input (1,5,15.......) timefilter hours Days of week filter news filter buy entry condition 1. We have candle with BUY 13 and price closed above last fractal HIGH higher than (X) pip and lower than (Y) pip and Condition 2. between these bars (BUY 13 and entry candle) is not bar with TD setup (9) (long and short, both 9 are prohibited) please make condition nr. 2 with (TRUE/FALSE) option when FALSE, EA will open trades, with or without number 9 (from td setup pattern) between 13 and entry candle what is closing above/bellow fractal.. and condition 3. Close price of candle above high fractal is lower than (X) pip and higher than (y) pip from close price BAR BUY 13 and this price difference is lower than ATR coef1 and higher than ATR coef2 and condition 4. entry bar is atleast (X) bars and maximum (Y) bars from bar with number buy 13 sell entry condition 1. we have candle with SELL 13 and price closed bellow last fractal LOW lower than (X) pip and higher than (Y) pip and condition 2. between these bars (SELL 13 and entry candle) is not TD setup (9) (long and short, both 9 are prohibited) please make condition nr. 2 with (TRUE/FALSE) option when FALSE, EA will open trades, with or without number 9 (from td setup pattern) between 13 and entry candle what is closing above/bellow fractal.. and condition 3. Close price of candle bellow low fractal is higher than (X) pip and lower than (Y) pip from close price BAR SELL13 and this price difference is lower than ATR coef1 and higher than ATR coef2 and condition 4. entry bar is atleast (X) Bars and maximum (Y) bars from bar with number SELL 13 condition 5. when opening trade, in the last (X) bars was ADX higher than (X) condition 6. in the last (X) bars was the highest ADX lower than (X) Stoploss bellow/above entry BAR (TRUE/FALSE) (X) pip bellow/above STOPLOSS bellow last fractal (TRUE/FALSE) (X) pip bellow/above Do not open trade if Stoploss is higher than (X) pip Do not open trade if Stoploss is lower than (Y) pip (True/false) buy Takeprofit = entry price + (entry cadle true range)*koef (X) sell Takeprofit = entry price - (entry cadle true range)*koef (X) (True/false) buy Takeprofit = (entry price - last fractal low)*coef (x) sell takeprofit = (last fractal high - entry price)*coef (x) Breakeven after Xpip, SL to entry + (X) pip If during (X) bars from entry position was not atleast (X) pip in profit Exit trade Do not trade buy if rate between (entry price - last fractal low) / (entry cadle true range) is lower than (X) and higher than (Y) Do not trade sell if rate between (last fractal high - entry price)/(entry cadle true range) is lower than (X) and higher than (Y) spread filter (x) pip Fixed risk % (X) min lots (X) max lots (X) max opened trades on the account (X)