Spécifications
system definition:
smaller ema crosses a band of higher ema's (high, low and median) to initiate trades by using grids.
entry:
smaller ema(close) crosses a band of bigger ema (high, low and median) and smaller ema goes above the bigger ema high band by
X pips(smaller ema close value and not the price) then buy trades are initiated.
smaller ema(close) crosses a band of bigger ema (high, low and median) and smaller ema goes below the bigger ema low band by
X pips(smaller ema close value and not the price) then sell trades are initiated.
once a buy or sell order is initiated then the grids are opened at every x pips(grid space) with a max. no. of grid levels=y
in one direction..i.e..either sell or buy
e.g...
slippage=x
take profit=xxx
stop loss=xxx
grid space=100
max. orders=5
and if sell is triggered then...
the trades are opened at
1.3500
1.3400
1.3300
1.3200
1.3100
once the take profit is reached for 1.3500 it initiates a trade at 1.3000
because it will always have 5 open orders floating (max. orders).
exit:
smaller ema crosses(close value) into the band of bigger ema...then ALL the open buy or sell trades are closed.
filter:
when the smaller ema(close value) is inside the band of the bigger emas(between the high and low) there are no trades.
please let me know if anyone could code this ea for me..
thanks,
Manoj
I ALSO WANT TO ADD:
1. A trailing moving average stop loss (high or low or median) with the provision of re-initiating the trade, if the stop loss is hit and if the moving average is still on the buy or sell side(meaning..if the slower ema
is below or above the bigger ema band by x pips as defined in the entry condition)
2. also want to add a variable to designate the number of bars /attempt to enter the market..i.e...if by chance the stop loss is hit when entering the market...then it can re-enter in the next bar based on the number of times to enter.
sorry for missing this part... I just came up with this while I was thinking more about this system.