Lavoro terminato
Specifiche
I need an expert advisor who can open trades according to daily, weekly, monthly and annual pivot levels created by classical calculation.
It will only buy or sell only, depending on the SELL or BUY transaction I choose. It will operate close to pivot levels with the "PIP" value I will determine.
Technicial Specifications
1. On the graph, according to the classical pivot calculation, there will be pivot lines in daily, weekly, monthly and annual periods. Each pivot period will be in different colors and the main pivot levels will be a thicker line. Also, historical levels will appear on the chart, just like on the tradingview site (below example).
2. Which action to be performed will be specified in the settings. "SELL" or "BUY". Accordingly, EA will open only SELL or only BUY in the relevant chart.
3. In the settings will be the Operation input range place. I want to enter two price entries in the section here. Accordingly, when the price reaches the first value ("price1") that I will determine, no new transaction will be made and a notification will be sent to my mobile phone (EURUSD COLLECT PROFIT). The second value (price2) will be the stop loss for all open trades, but the transaction will not stop, only a notification will be sent to my mobile phone (EURUSD Stop Loss).
4. There will be a "Pip" value that I will set. This value will be added to or subtracted from the price in the calculation in order to enter or exit the transaction in the Pivot.
for example
In the SELL process;
to open a transaction; If the price is coming from below, approaching the upper pivot line as much as the pip value is enough to open a trade. If the price is coming from above, it must cross the pivot level by the pip value.
To close the process; It is sufficient for the price to approach the lower pivot line as much as the pip value.
In BUY process;
to open a transaction; The price should cross the pivot level up by the pip value.
to close the transaction; The price will only need to approach the next pivot level by the pip value.
5. Trades will be opened as "TP" orders and "SL" will be open.
6. In addition, if there are pivot levels very close to each other, the spread value will also be taken into consideration and will not open if the transaction is not profitable.
7. If the opened trade returns to the same level before reaching the other pivot level, a second trade at the same level will not be opened.
8. Old orders do not need to be updated according to new levels, as pivot levels change daily or weekly.
9. Source codes will open.
10. The calculation should be made according to the opening and closing hours of the forex market.
Forex Monday in Turkey 01 opens at 00.
The classic pivot calculation is as follows.
PPL=LOW
PPG=HIGH
Pivot= (PPL+PPH+CLOSE)/3
r1 = (pivot * 2) - PPL
s1 = (pivot * 2) - PPH
r2 = (pivot + (PPH - PPL))
s2 = (pivot - (PPH - PPL))
r3 = (pivot * 2) + (PPH - (2 * PPL))
s3 = (pivot * 2) - ((2 * PPH) - PPL)
r4 = (pivot * 3) + (PPH - (3 * PPL))
s4 = (pivot * 3) - ((3 * PPH) - PPL)
r5 = (pivot * 4) + (PPH - (4 * PPL))
s5 = (pivot * 4) - ((4 * PPH) - PPL)