Dear Seniors,
Current interval is 1 minute.
Trying to plot 1 min SAR and 3 min SAR in chart. Try with this code below.
acc = Param("Acceleration", 0.02, 0, 1, 0.001 );
accm = Param("Max. acceleration", 0.2, 0, 1, 0.001 );
Plot( SAR( acc, accm ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style", styleDots | styleNoLine, maskDefault | styleDots | styleNoLine ) );
TimeFrameSet( 3*in1Minute ); // switch now to 3min
acc = Param("Acceleration", 0.02, 0, 1, 0.001 );
accm = Param("Max. acceleration", 0.2, 0, 1, 0.001 );
Plot( SAR( acc, accm ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style", styleDots | styleNoLine, maskDefault | styleDots | styleNoLine ) );
TimeFrameRestore(); // restore time frame to original
Definitely i am doing wrong. 3 min SAR not plotted properly in the chart.
Please guide.
Thanks and regards,