How to fastly/simply obtain order open price?

 

Hi.

How to obtain the order open price?

Ive tried this for see printed results

Print(   OpenPrice",PositionGetDouble(POSITION_PRICE_OPEN),
        "   Profit",PositionGetDouble(POSITION_PROFIT) );

it just return in the Journal:

OpenPrice()

Profit()


no values returned.

Some help?

Thx

 
forexistence:

Hi.

How to obtain the order open price?

Ive tried this for see printed results

it just return in the Journal:

OpenPrice()

Profit()


no values returned.

Some help?

Thx

You can read this thread to see if anything there is useful.

https://www.mql5.com/en/forum/130

Reason: