Plainview
Experience: Intermediate
Platform: TradeStation
Broker: TradeStation
Trading: Futures
Posts: 30 since Mar 2012
Thanks Given: 1
Thanks Received: 18
|
If you plot a chart of @ES.D and then plot HighD(1) you will see that you are plotting the high of yesterday's trading session (the day session i.e. 9:30 AM to 4:15 PM Eastern Time). Likewise, you can define a custom session and get an analogous result - the high from the prior custom session is plotted. If you do not limit yourself to the day session (i.e. using the .D after your symbol as in @ES.D) or define your session, then you get the behavior you are describing. If you want to create a function that will return a certain price, or you want to plot that certain price, I have little doubt that it can be done. But we need to know exactly what data you are examining (e.g. I am plotting a chart of @ES 15 minute bars - regular session) and exactly what value you want the function to return, or the chart indicator to plot. This is unclear to me from your post.
|