Bid Ask average display

 

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.

Files:
 
ianmae: Can someone please help me modify (emphasis added)
Since there are no slaves here, you have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt and the nature of your problem.
 

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.

 
ianmae:

@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);
 
RaptorUK:

I think it should be . . .

 

Thank you very much....  You are truly a great help...