MovAvgExponential().”AvgExp” crosses above vwap


0
0

Mr. Hahn, I have very much enjoyed your videos and insight. I am struggling with trying to create the proper alert. I am trying to create a signal using TOS when the MovAvgExponential (Close, 9, 0, No) crosses above the VWAP (-2.0, 2.0, DAY). I know I’m just missing something with the data selection. I am looking for the entry point that is indicated on the attached chart.

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on April 20, 2020 10:54 am
254 views
0
Private answer

Sorry for the bad news. We have already covered this in the forum and at this time the VWAP study itself is not supported in Study Alerts or Conditional Orders.

https://www.hahn-tech.com/ans/vwap-conditional-order/

The code you have there in your screenshot does not match the plots on your chart because you are using the vwap fundamental data series in the alert code while your are plotting the VWAP chart study on the chart below the code editor. The VWAP chart study is derived from the vwap fundamental data series but they are not in any way the same.

Now if what you really wanted from this was the moving average crossing the vwap data series. Well your code is 100% correct. But your chart is not setup to match. You would need to create a custom chart study to add that chart using the following statement:

plot data = vwap;

Plot that on your chart below the code editor and you will find your code is performing exactly as you have entered it. But I am pretty sure you don't want that. Otherwise you would already figured this out and would not have taken the time to post this question in the forum.

Now where were we? Oh, right. Point A to Point B is blocked by an impenetrable barrier. What to do....?

Fortunately there is a workaround. Which has already been covered in the forum (did you take the time to search for this solution in the forum before posting this question?). Please make sure you use the search function. With well over 1,400 posts I think that just about any question that could be asked has already been asked.

Oh, right. The workaround, where is that you say? Well it's right here:

https://www.hahn-tech.com/ans/scan-for-ema-vwap-cross-over/

That post provides code that you can run in a custom scan. It does NOT work as a Study Alert or Conditional Order. So don't bother wasting any time trying to figure that out. But you can create a custom scan, save it, and then create your dynamic alerts from that saved custom scan. How? Glad you asked. I demonstrate how to do this towards the end of the following video:

https://www.hahn-tech.com/thinkorswim-overnight-range-scan-alert/

 

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 20, 2020 1:28 pm