First of all i would like to resolve an issue with the Output Window.
The data that comes out in the OW is repeated several times.
For exemple, you can see in attachement the data start at 2792 and ends at 2795.25 it seems that every time a new bar is appearing it recalculate from start and add another bunch of data.
Extract bars traded above is easy.
if(closePrice > cma)
Print(closePrice);
The thing is i just want the price above CMA before for(int barIndex = ChartBars.GetBarIdxByX(chartControl, cursorPointX) - someOtherInt; barIndex <= ChartBars.ToIndex; barIndex++) cursorPointX.
Do i have to create a CMA for for(int barIndex = ChartBars.GetBarIdxByX(chartControl, cursorPointX) - someOtherInt; barIndex <= ChartBars.GetBarIdxByX(chartControl, cursorPointX); barIndex++) as well or is there a short cut to my problem?
In that case i would have to create 2 CMA's and send back the answer where i need it.
As for
My question is, what do i need specifically in SCR to make it work? Cause there's a lot of settings. Its not a priority for now.
Comment