Closed: How are the bid and ask prices calculated by the indicator?

Closed: How are the bid and ask prices calculated by the indicator?

The indicator calculates the bid price as the current market price minus half of the specified spread value.

Similarly, it calculates the ask price as the current market price plus half of the spread value.