Job finished
Specification
What i need:
I need an indicator that can put visuals on the graph for me to assess. It should work for every pair in every time period.
Specifics:
It will use a simple tool: moving average. It will calculate a moving average (period should be a variable that i can enter) and displace it to the past (Also a variable). After this, it will extrapolate the average line to the future by using the last 2 values of the moving average. The indicator should be aware of and follow the extrapolated values because entries will be calculated based on them.When the current time candle closes, the robot will recalculate itself and refresh the extrapolated line. It should leave all entry marks on the graph so i can study them later. It would be ideal if the marks put by the indicator stays on the graph even if i close the meta-trader. I also would like to see the extrapolated line calculated by the indicator.
Rules:
Moving average calculation: Period should be a variable. Displacement to the period should be a variable. (Example: 20 SMA with 10 days displacement to the past)
Extrapolation: The indicator should extrapolate the line of moving average to the future by using the last 2 values of the average.
Entry:
The logic is classic mean reversion. When the price move away enough from the extrapolated line, we take a counter position.
The indicator will look at the trend direction of the extrapolated line. If its going up, the entry alert will only come for long positions where the price is also below the extrapolated line. If trend is down, the entry alert will only come for short positions where the price is above the extrapolated line. On the occasion where average is in no trend (the last 2 values of the average is the same) then alert can come for either direction (short or long)
Example: extrapolated line is showing up and the price is 10 pips lower then the line at that point. Indicator alert buy. Puts a mark on that point.
Visuals:
I am leaving visuals to the programmer. The more helpful it is the better.
IMPORTANT
I do not have time to get in to programming details so i need the product to work the first time and every time.
For any other questions, please do not hesitate to write. I can put more pictures showing examples.