40_Flax
September 27, 2020, 2:45pm
1
Hello,
I am having problem with a simple exploration as it does not return any results and i am puzzled as to why because i have done other exploration which do return results. If i plot signal on the chart, i will show on the chart but nothing on the explo results !!
// One year ROC is > 20 (prior uptrend)
AccuROCP = Param("Periods", 253, 1, 1000, 10 );
AccuROC = ROC(C, AccuROCP);
Uptrend = AccuROC > 20;
//CHART PLOTTING
Plot(Close,"", colorPink, styleBar);
PlotShapes(shapeHollowUpArrow*Uptrend, colorGreen, 0,L,-30);
// EXPLORATION
AddColumn(Close, "Last Close", 1.3, colorDefault, colorDefault, 100);
AddColumn(Uptrend, "Uptrend", 1, colorDefault, colorGreen, 80);
AddTextColumn(FullName(), " Company Name", 1, colorDefault, colorDefault, 500);
Thank you for your help.
fxshrat
September 27, 2020, 2:57pm
2
When inserting code to post then please use code tags (it is mandatory). See here
You forgot to add Filter
variable. It is essential part of every Exploration .
// One year ROC is > 20 (prior uptrend)
AccuROCP = Param("Periods", 253, 1, 1000, 10 );
AccuROC = ROC(C, AccuROCP);
Uptrend = AccuROC > 20;
//CHART PLOTTING
Plot(Close,"", colorPink, styleBar);
PlotShapes(shapeHollowUpArrow*Uptrend, colorGreen, 0,L,-30);
// EXPLORATION
Filter = 1;
AddColumn(Close, "Last Close", 1.3, colorDefault, colorDefault, 100);
AddColumn(Uptrend, "Uptrend", 1, colorDefault, colorGreen, 80);
AddTextColumn(FullName(), " Company Name", 1, colorDefault, colorDefault, 500);
40_Flax
September 27, 2020, 3:04pm
3
Thank you much for your quick reply.
system
Closed
January 5, 2021, 3:04pm
4
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.