Hello together,
1.) how can I get the price or the intraday bar index back from point 1 and / or point 2 (such as TradeIndex or TradePrice).
2.) How do I calculate that after point 1 point 2 is reached after [n] bars
Welcome to the forums.
You need to define how point 1 and point 2 are identified. We can’t guess.
TRADEINDEX is the index number of the last bar that an order was filled at.
TRADEPRICE is the last price an order was filled at.
Your question is a little difficult to understand without more detail.
Just store values in variables every time your event occurs and then you can calculate how many bars there have been since the last time it occurred.
if (your event1) then
myindex = barindex
myprice = close
endif
barcount = barindex - myindex
no i don’t realy mean that. I must think about again …with more backwardthinking