Forum

grid system of buy limit orders: I need to know the last two price level when appen: opened or closed of two consecutive orders; opened and closed an order

In a grid system of orders of one type (example buy limit) I need to know the values of price levels when the order is opened or closed. I need to know the last 2 price levels in which an order has been opened, closed, or opened and closed. If the orders are, for example, of the buy limit type, I

I need to memorize the value of the initial account balance in a variable V at the first start of the expert

I need help In my expert I need to memorize the value of the initial account balance in a variable V at the first start of the expert in order to use this value and compare it with the account equity at each tick. So if the account equity at a certain time t is greater than the value of the initial