Auftrag beendet
Spezifikation
I would like to develop an indicator that can display Bid Ratio, Buy/sell Ratio and Gap (3 stuff) in 1 indicator. The formula to calculate each value will be given in the specification later. However, here is the general description
- Bid Ratio (Blue line - customisable ) - Current Bid price % with respect to high and low over a day (Default) /week/month (broker TF - customisable)
- Buy/Sell Ratio (Red line - customisable ) - Currency strength of the current currency
- It calculate 7 base pair Bid ratio and minus 7 quote pair bid ratio
- Gap (Lime line - customisable) - Change in Buy/Sell Ratio over the past XX minutes (30 minute by default but is also customisable)
All the value needed to reset over day (Default) /week/month (customisable - same setting use for Bid Ratio). To ease the visualisation, a vertical grey line will be draw at where the indicator calculation will reset.
Only 1 value will display at 1 time. So I need a button at the bottom right (Allow me to change position as well) of the Indicator to allow me navigate between this 3 value. Just make a small button with using the short cut below. Font size is 10 ( Default - allow me to change in the setting).
- BR = Bid ratio.
- BS = Buy Sell ratio
- G = Gap
After the desire value has been plotted, starting from the where the indicator reset ( Eg. Daily), calculate the Bollinger band value of the indicator. For example
- I am using Buy Sell Ratio now and is reset on daily basic
- It will calculate the mean price of the BS ratio and plot out the mean line together with Buy Sell Ratio
- A ( 2.0SD - customisable) will plot around the mean based on the standard deviation (SD) of indicator value (in this case BS ratio). This should continue and repeat for the past YY (default = 10) day
- (Optional) If possible, create an downward arrow when the value from top cross below the 2.0SD. Vice versa.
- A histogram chart will plotted on the left(or right - can change in setting) side where the indicator will reset by itself. In this case it will place on every day with hour=0. The histogram should only occupy 20% of the period. Meaning 1 day, the hour is 0 -24, and max value should only occupy from hour 19-24 (since it is at the right side).
- By default the bin size is 0.2and max/min value is +- 8(any number beyond that will be added here). This value need to be in setting as well.
- Calculate based on Current close price candle (fix)
Having the setting to export the data out and store in CSV. The indicator value for the past YY (default = 10) day will be first store. The CSV will continue append the latest data every10sec (Default & changeable) The required data are:
- Symbol
- Broker time
- Local Time
- Close price
- Bid Ratio
- Buy Sell
- Gap
When the export setting is true, create a "Debugging" Yellow text at the top right of the chart so I know the CSV is collecting.
The file name is following the format: custom_name ( Default=CSIndi) + broker short name + symbol + date (year.month.day)
Expected final outcome
Ps: I forgot to draw 3 little button at the right side to change the indicator value type. But it is needed.
I do not accept indicator code that is generated.
Highly welcome developer that is communicative and experience in MQL indicator. Please communicate with me on your experience so I know if you are suitable in working with this project or not.
Source code is needed by the end of the project.