change this line
disp_price = StringConcatenate(DoubleToStr(ask_price, Digits)," - ",DoubleToStr(bid_price, Digits));
to
disp_price = StringConcatenate(DoubleToStr((ask_price+bid_price)/2, Digits));
untested...
@serpentsnoir
I tried editing it with your input, but it returns 1 error, prompting me missing semicolon or parenthesis. I also tried multiplying it with 0.5, still gives me error. I tried this:
disp_price = StringConcatenate(DoubleToStr((ask_price+bid_price)*0.5, int digits));
it gives me the same result.
@WHRoeder
RE: your comment. This is for educational purpose, and I would like to learn binary options which I have read that signals are calculated as such. Thus, I am asking for your inputs/advices.
If you recommend someone to code it for me for an affordable price, then that would be helpful.
Thank you.
@serpentsnoir
I tried editing it with your input, but it returns 1 error, prompting me missing semicolon or parenthesis. I also tried multiplying it with 0.5, still gives me error. I tried this:
disp_price = StringConcatenate(DoubleToStr((ask_price+bid_price)*0.5, int digits));
it gives me the same result.
I think it should be . . .
disp_price = DoubleToStr( (ask_price + bid_price) / 2, Digits);
I think it should be . . .
Thank you very much.... You are truly a great help...

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone,
Can someone please help me modify the attached file to display the average of a Bid and Ask on the chart, instead of both values?
Thank you.