İş Gereklilikleri
This EA works by counting bullish/bearish bars, then there is a threshold of what excess % there can be for bullish/bearish for example if set to 60% then if there is 60% bullish bars over X amount of bars then it will open a sell trade, the EA will then open a series of sell trades on the close of each bullish bar until the exit conditions are met (the buy signal works the same way).
What I want to do is modify the existing function of opening another position on the close of say a bearish bar in the case of a buy position to be a calculation of % move from the current ATR value of the given timeframe.
For example:
BUY POSITIONS:
CURRENT ATR VALUE: 20 PIPS
% MOVE TO OPEN NEW POSITION = 50%
CHECK IF WE HAVE ANY OPEN POSITIONS ON SYMBOL IN QUESTION IF YES THEN:
IF PRICE MOVES (50% OF 20 PIPS = 10) 10 PIPS LOWER THAN THE OPEN PRICE OF THE LAST OPENED POSITION WE OPEN ANOTHER BUY POSITION. (ONLY IF PRICE MOVES AGAINST US WE OPEN A NEW POSITION)
This function will have the following parameters:
ATR PERIOD
ATR TIMEFRAME
% OF ATR TO OPEN NEW POSITION
This EA works on multiple symbols and each symbol will have its own individual set of parameters for this function.
This function will work on the close of a 1 minute candle to save resources (I know that this means we wont get exactly our ATR % value 100% right but that's ok).
When the EA has open positions I want a text included in the current text boxes already created of the number of pips required before opening new position. (Like a countdown to new position is opened).