LongEntrySignal = Fast VWAP(Main chart,FastVWPSlwVWPFstPrd1)[1] is above Slow VWAP(Main chart,FastVWPSlwVWPSlwPrd1)[1];
ShortEntrySignal = Fast VWAP(Main chart,FastVWPSlwVWPFstPrd1)[1] is below Slow VWAP(Main chart,FastVWPSlwVWPSlwPrd1)[1];
LongExitSignal = (((Williams % R(Main chart,WPRChangesPeriod1)[1] changes direction upwards)
and Bar opens above Highest(Subchart1, D1, BarOpensPeriod1, PRICE_HIGH) after opened below)
and ATRPercent(Subchart1, D1,ATRPrcAbvLvlATRPrd1)[2] is above 0.2);
ShortExitSignal = (((Williams % R(Main chart,WPRChangesPeriod1)[1] changes direction downwards)
and Bar opens below Lowest(Subchart1, D1, BarOpensPeriod1, PRICE_HIGH) after opened above)
and ATRPercent(Subchart1, D1,ATRPrcAbvLvlATRPrd1)[2] is above 0.2);