Getting Current Market Price and writing it to a Constant
-
I want to get the current market price and insert it into a pre-named constant in the "Constants/Variables" table. Is this possible ?
-
Try this:

-
@bradleybear Thanks l'andorra will try.
-
IF this is true "The bid price represents the maximum price that a buyer is willing to pay for a share of stock or other security. The ask price represents the minimum price that a seller is willing to take for that same security" Is it right to say, when calculating the distance of retracement when in a sell, you would use the bid from the opening price distance, and when a buy, you would use ask relative to opening price? I always get these mixed Ultimately I am trying to find a best way to get current price as it is dynamic and use that distance from opening price to calculate a break even point or trailing stop so, spread is never an issue anymore. How to get current price as it is?
-
The Ask and Bid don't work like that, they are the prices that a broker uses to take a small amount of money every trade you take. The accepted price can change, they call this slippage, it can be different to the requested price, weather pending or instant.
-
So then, how are you using ask or bid? If they are all just relative definitions, then what are you using to standardize your meaning of it relative to the current price?
-
Ask and bid change distance apart depending on time, the more liquid the asset the smaller the distance, slippage is when the price you position is opened/closed, is different to what you requested. This is reliant on the price others will buy/sell.