// Downloaded From https://www.WiseStockTrader.com
/////////////////////////////V-TRADE - MLP-V-traders Academy////////////////////////////////

TimeFrameSet(inDaily);
AVGd = (O + C)/2;
"        PPd:\t "+ AVGd;
TimeFrameRestore();


Buy = O < Ref(AVGd ,-1) AND (O!=C);
Sell = C < Ref(AVGd ,-1)AND (O!=C);


shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorOrange, colorRed ), 0, IIf( Buy, Low, High ) );
Plot( TimeFrameExpand(AVGd,inDaily,expandFirst),"MLP",colorGreen,styleStaircase);

///////// V-TRADE - MLP End ////////