I'd like an EA, based on attached indicator. Here are the entry rules:
Indicator has 3 values: swing_ZZ(2) value, and value2 and value3
(1) if swingZZ(2) and value 3 are equal in a closed bar, and after a closed bar not changed, open buy
(2) if swingZZ(2) and value 2 are equal in a closed bar, and after a closed bar not changed, open sell
(3) if buy opened EA places pending sell stop to @ swinzz value 3
(4) if sell opened EA places pending buy stop to @ swinzz value 2
indicator uses highest high and lowest low.
([url removed, login to view])
my idea is, if there is a buy or sell signal, ea waits till next bar is also
closed, than opens trade. i suppose that @ sell price stays below the highest
high, so will move down. and vice versa @ buy. EA as soon as opened a position places pending stop order to the
opposite side, means if opens buy, places sell stop. Because if trend reverses EA could trade as well.
so setting would be
minBars= /// for zizag
risk= /// money management
close on opposite= yes/no /// if buy comes after sell ea closes opened order or not and vice versa
opposite extra pip= /// means ea adds value to value 3 or or deducts value from value 2
delete pending bars= /// delete pending stop orders after defined closed bars
s/l mode= 0 /// classic in pips 1 /// opposite high or low
Chart attached too.
As I see, if opposite= yes/no /// is turned off, more than one position could be trailed. So ea must manage them.
And what if EA has opened order and opposite signal comes? Nothing.
Manages opened position. And if closed, waits till next signal.