A flexible VWAP indicator for cTrader
VWAP is a nice indicator for day trading. This version is a cTrader indicator with flexible Session selection using the Window and webview control provided by cTrader.
- Customizable session start time and save it to the web local storage.
- Multiple session can be slected
- Ad hoc manual session for individual symbol
- Initialize once only, until reset.
- Indicator Parameter:
Reset Session
, this parameter determines to show or skip the Session Dialog - A txt file for the Session(s) selected will be saved in the Documents/cAlgo/Data/Indicator/VWAP folder for each symbol with respective timeframe. I.E. XAUUSD-H1.txt; or by changing the pattern in SessionHelper.cs
string sessionFile => $"AIO_{_bars.SymbolName}_{_bars.TimeFrame.ShortName}.txt";
- After the first success initialize of the indicator, run the setting again to set
Reset Session
parameter to NO. The Session Selection Window will not show next time for the same symbol and timeframe.
- clone the project and plce into the folder
Documents\cAlgo\Sources\Indicators\VwAP
- in your cTrader Algo editor, opent the VWAP indicator and Build
- place the
index.html
file into the folderDocument\cAlgo\Data\Indicator\
- Enjoy your trade
- Improve documentation of the code
- C#: cTrader only
- HTML: boostrape, tabulator
Welcome to give me suggestion.