Plot shapes using same level as styleonwscale

I see no stylenoshape options when i use plotshapes. How can i plot shapes at same level as i used for the styleownscale? CODE AT BOTTOM
1Nfpm4T1

TRADEWINDSLONG=1;
TRADEWINDSSHORT=2;
_SECTION_BEGIN( "Donchian" );
highvalue = Ref( HHV( High,300), -1 );
donchianhigh20= Ref(HHV( High, 20 ),-1);
Plot( highvalue, "highvalue", colorRed, styleLine|styleNoRescale );
Lowvalue = Ref( LLV( Low, 300 ), -1 );

Plot( Lowvalue, "Lowvalue", colorGreen, styleLine | styleNoRescale );

countSincehighValueTouched=BarsSince(H>=highvalue);
countSincelowValueTouched=BarsSince(L<=lowvalue);
tradeDirection =IIf(countSincehighValueTouched<countSincelowValueTouched,TRADEWINDSLONG,TRADEWINDSSHORT);
tradeDirectioncolor=IIf(countSincehighValueTouched<countSincelowValueTouched,colorWhite,coloryellow);
_SECTION_END();


_SECTION_BEGIN( "MFI" );
 periods = 14;
 mficrossed=Cross(MFI(periods),50);

 _SECTION_END();
 
   
 

_SECTION_BEGIN( "  DIRECTION AND TRADE PLOTTING." );
LineThickness = 10;
Plot( tradeDirection, "tradeDirection",  tradeDirectioncolor , styleOwnScale | styleLine , -1, 90,width=LineThickness  );
Plot(  mficrossed*tradeDirection, "tradeDirection",  colorRed , styleOwnScale | styleDashed , -1, 92,width=LineThickness  );// NEED THIS TO PLOT AT SAME LEVEL AS "tradeDirection"
 PlotShapes( mficrossed*shapeDigit7, colorBlueGrey, layer = 0,90 , 0 );
_SECTION_END();

You should do the other way round. The plots that need PlotShapes should use regular scale. Besides your code is incorrect because it has ZERO plots that actually set scale (you are using either styleNoRescale or styleOwnScale and you have no Plot that actually is WITHOUT those styles).

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.