Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Call VolumeWAP2 from strategy
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=58707
Page 1 of 1

Author:  EBMMLuke [ Tue 17 Oct, 2023, 20:55 ]
Post subject:  Call VolumeWAP2 from strategy

Good evening.

How do I call the VWAP2 indicator from strategy and pass the parameter for a daily reset (default: 4h)?

Thanks for your help!

Cheers, Luke

Author:  EBMMLuke [ Wed 18 Oct, 2023, 21:03 ]
Post subject:  Re: Call VolumeWAP2 from strategy

Good evening

I did some extensive research in the forum and API docs.
Unfortunately, I couldn't find a solution to set the optional parameters, located on the advanced tab, from strategy. There is one option to change them via the IChartPanelAdd Method, but that doesn't help in my case.

e.g.
https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=54574&p=89798&hilit=indicator+advanced#p89798

https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=57491&p=95681&hilit=indicator+advanced#p95681

I noticed that in earlier versions of the indicator call methods actually was the possibility to change those base periods, e.g. for pivot indicators. But those are all deprecated. Are there plans to add this functionality back as it is quite important in the case of VWAP and others as well?

Thanks for your help!

Cheers, Luke

  Page 1 of 1