I am trying to add the VWAP line and the standard deviation lines from it (1,2,3) to my strategy as plot lines for entry criteria. having trouble from the help guide in determining what it needs to look like in the strategy in these following locations:
public class StrategyName : Strategy
{
private ChaikinOscillator ChaikinOscillator1;
private (VWAP code for second standard deviation (under the VWAP line) here)
}
...
else if (State == State.DataLoaded)
{
ChaikinOscillator1 = ChaikinOscillator(Close, 3, 10);
(VWAP code for second standard deviation (under the VWAP line) here)
}
...
if ( Close[0] crosses above (VWAP code for second standard deviation (under the VWAP line) here)
)
{
EnterLongLimit(1, GetCurrentBid(0), @"1");
}
Thank you

Comment