How to save order open course not as a bid or ask but current value that is expressed in points. [SOLVED]

 

Hi, i want save course as a value in global variable.

It need to be save as a current value, written in points. Not the Ask or Bid.

I want to use it to compare distance between orders.

If i use GlobalVariableSet GLV == OrderOpenPrice than it will be ask or bid price and it will be always current market price.

Anybody knows how to compile it? :)

 

What do you mean by Course?

OrderOpenPrice() isn't the same as Ask || Bid.

The OrderOpenPrice() cannot change for Non-Pending-Orders.

The Ask && Bid is always changing.

 

I want use OrderOpenPrice or OrderStopLoss.

if I'll select order and save:

globalvariableset()

GLOBALVARIABLE == OrderStopLoss

than, it will be:

OrderStopLoss == Bid - SOME * points // for Buy order

//so

GLOBALVARIABLE == Bid - SOME * points // I can't use it to declare distance from this point in future because Bid will change.

or i will use orderopenprice as you suggest and will have little more countging.

thanks this for prompt, i'he been really thinking about pending orders

Reason: