İş tamamlandı
İş Gereklilikleri
I need help with putting my idea of a strategy down in code. I dont need optimization help but rather just help with getting a functioning code that I can continue to work on myself.
The EA should use some indicators, one of them are a custom indicator "Supertrend" which I already have access to and will share with you. Supertrend is basically an indicator that plots a band under or over the candlesticks with the distance 3 multiplied by the average true range with a period of 10. As soon as a candle closes on the other side of the supertrend, the band switches to the other side of the candles (and switches colour) and it starts to trail the price until it closes on the other side again.
Part of the job will be to code something custom to allow for a 10 second timeframe. When that is in place the second part of the job will be to code the EA itself and the rules for that is listed below:
For Long positions all the following criteria must be met: Supertrend indicator must be green on the 15 min timeframe and supertrend must be green on the 1 min timeframe. If these two criteria are met the EA should go long when a candle closes at or under the bollingerband with a deviation of 2 on the 10 second timeframe (period 20 on the bollingerband) -The position is hold until either of these 3 exit criterias are met:
1. If the position goes the right way it looks for bottoms in the rsi indicator on the 10 second timeframe with a rather short period of 5 on the rsi. every time a bottom is set in the rsi5 that has a value of under 25, the corresponding level in the price graph during that bottom should be used as the exit level if that level breaks. I want some small margin here lets say 2-3 pips. I have screenshots to explain this further.
2. A full stop out occurs. the stop should be placed 3 times the atr on the 1 min chart away from the entry.
3. If the supertrend switches to red on the 1 min timeframe the bot should look for exit. However I dont want it to exit right away but instead use the bollingerbands on the 10 sec tf again. So if it closes at or under the bollingerband (2) it should make the exit.
The exact same rules apply for short positions but in reverse. The bot should consequently stay away from taking positions when the supertrend on 15 min and 1 min tf doesnt agree. I think that is all the rules that are needed