指定
Hello everyone, i need an Expert Advisor for my spread trading strategy using my own indicator.
First i need to add a little modify to my indicator (just an alert when to take the tp - and adapt it for the mt5 (it's only for mt4 right now))
Then i need to realize my EA, i need it for both Metatrader 4 and Metatrader 5 platform (i need the mt5 to test it in multi cross and the mt4 to execute it on broker with mt4 only)
Detailed specification:
window indicator - when the blue line of the spread (value 1) size from the bottom to the top the green horizontal line (Value5) then open the two legs, in this case .... Buy and Sell of pepsicola of Coke. (entry must be the next candle after the line cross the band)
Tp you have to touch the spread (value1) in median dotted (value3). Entry may also be more than one ... in the case mentioned above in fact there are two entrances before going to tp (for a total of 4 open operations).
2° type of entry: enters when under the bands (not expect close above the bands)
3° type of entry: entry when it is X points distance from bands
The sell is the opposite condition to buy
Size of entry
Entry is expected to be made on entering with the same monetary value on two legs, so as to be balanced.
EXAMPLE: In the case shown above the value of Pepsi was about $ 99, the coke instead about 43, so the ratio in this case should be approximately 1 to 2 (99/43 = 2.30), in fact, if you notice in the window I scored 10 pepsi actions against 23 Coke shares.
So EA should contain a formula for calculating the value of the legs in order to enter in a "weighted". In this way, and it could be adapted to any market (equities, indices, commodities, forex, etc ...)
Possible options for EA
2° leg Symbol
Maximum number of entries (2 kind: max entry for the same day and max entry for more days ...the max entry for the same day must have another sub-option.... time delay (to avoid consecutive entry due to the lateralization of the spread))
Take profit money (under option to tp on the median) ....must work together? In the sense that, or closes at the touch of the median, or closes before if reaches a monetary amount.
Capital to be considered for the entry (monetary or in percent of equity)
Multiplier to second inputs (the first makes based on the selected capital above, from the second onwards instead increases the size of entry based on the set multiplier)
sl money
Sl on the% of available capital
setting parameters for the indicator
Button on the chart, "begins the sequence long" - so it starts when we want
Button on the chart, "begins the short sequence" - so it starts when we want
Time filter (to tell him when to start any sequence if there are conditions, so as to cut the night ...)
.......
It is important that you can make the backtest on Multipairs! So i can find tf or more interesting settings.
INDICATOR will be provided to the choosed developer.