I have an if statement that enters a long position when a Condition1 is met. How do I store the entry price of that long position in a variable?
Here is my current code
if(Condition1){
EnterLong(1, "Buy to open");
var entryPrice = Execution.Price;
R/
XYZ

Comment