Change indicator calculation method (from close price to (ask+bid)/2 )

MQL4 지표

명시

 Hi,

   Attached two indicators: Accelerator (AC) and William %R. I did some changes to Accelerator indicator ,from PRICE_MEDIAN to PRICE_CLOSE and MODE_SMA to MODE_EMA.
Both indicators calculate with close price, which means close=BID_price, high=HIGH_bid_price, low=LOW_bid_pride. What would be more useful for me to change: close=(BID_price+ASK_price)/2, high=(HIGH_bid_price+ HIGH_ ASK_price)/2, low=(LOW_bid_pride+ LOW_ ASK_price)/2 etc.. So the only difference is: input data. It's not BID_price, but (BID+ASK)/2, (middle price). There are no historical data of ASK_price, so it has to be stored somehow as a variable or with some FileWrite function. It should be simple as possible and accurate. It will run 40charts on one MT4 instance so memory usage might be an issue.

If there will be no saved ASK_price  in memory (or file)   when indicators loads, in this case it should use BID_price (as its been before) for calculation, but when first Bar is formed it uses (BID+ASK)/2.

So if there are no history for Bar[2],Bar[3],Bar[4], it should take BID_price, but when it starts to be available it should calculate one by one with (BID+ASK)/2 price.

응답함

1
개발자 1
등급
(266)
프로젝트
540
50%
중재
55
40% / 36%
기한 초과
224
41%
무료
2
개발자 2
등급
(7)
프로젝트
15
47%
중재
6
33% / 17%
기한 초과
4
27%
무료
비슷한 주문
I have the mq5 file, I need a buffer adding to the indicator, so it appears in the data window so I can reference it later in an EA. As the below screenshot shows, there is a median ray line from yesterday (the dashed horizontal line) - I want this value in the data window called Median Ray. I want this to be a single value per day, so todays Median Ray would be 17868, and so on each day. So I want all the Developing
I would like to develop my own indicator on metatrader 4 and tradingview. We would start with a basic version that we would improve later. It is an indicator based on several analyses and which would provide several indications. I am looking for someone who can develop on MT4 and Mt5, initially I would like to do it on mt4 and then on mt5. If you have expertise in pinescript it is a plus because I would like to
I urgently require swift assistance to convert a complex indicator into a fully functional scanner, capable of automatically sending real-time data, alerts, and notifications via email, ensuring seamless integration and prompt delivery of critical information to facilitate informed decision-making and timely action
I need to improve the code of an indicator that is too heavy and slow when running and when used with iCustom in an EA. No other changes to the indicator are requested: the original features of the indicator should remain as theay are. I'll provide the indicator after job acceptance. I request final source code mq5 file. Thank you Regards
I have a mt5 indicator that is working perfectly but I will like to make it an expert advisor to have an automated trade. I will be glad if I can get a well experienced developer to execute this project. Thanks
O TRABALHO CONSISTE NA MUDANÇA DO HISTOGRAMA DO INDICADOR TREDN DIRECTION AND FORCE DSEMA SMOOTHED PARA O HISTOGRAMA DA FOTO ANEXA, OBEDECENDO AS TRES CORES VERDE (UP, VERMELHOR(DOWN) E CINZA(TREND). O MESMO TEM QUE ODECER O MESMO CALCULO E COLORIR DA MESMA FORMA POREM COM HISTOGRAMA DDE FORMATO DIFERENTE
If you are knowledgeable in hedging strategy we can chat. I created my simple EA using Fxdreema , so you only need to modify it for me. There are two parts of the EA , 1. Is the execution strategy 2. Is the money management strategy (hedging). I already created number 1 which is the execution of trades , I only need someone who can implement hedging in every orders the EA create. Additional Parameters needed. Trade
We are interested in a TradingView indicator that reads candlestick pattern shapes and shows the location of entry and exit points on a candlestick chart. What services do you provide related to this
Hello Im looking for professional trading developer who htf ready made trading with best and working strategy with low risk level with average of 30 to 60 percent profit margin, broker is not problem, any broker is welcomed and any trading pairs are welcomed as well
the sl doesnt work i want the tp logic to remain i need the trend direction fucntion tow ork i the trend is up then only buys if down only sells i need the fibo nacci fucntion to work as well and the flat zone function to work as well and i need the code to trade 1% of the balance //+------------------------------------------------------------------+ //| US500_EA.mq4 | //|

프로젝트 정보

예산
10 - 100 USD
VAT (21%): 2.1 - 21 USD
총: 12.1 - 121 USD
개발자에게
9 - 90 USD
기한
에서 1  2 일