Adding Arrows to Explore and Scan list charts

I have learned how to add arrows to indicate buy and sell points on the charts of symbols in an Explore or Scan list. I find, though, that the arrows don't show unless I right-click on each symbol in the Explore or Scan list and choose "Show arrows for all raw trades."

Is there a way to Show Arrows for all symbols in the Explore or Scan list instead of having to repeatedly request arrows one symbol at a time? That requires going back and forth between chart and analysis windows. It would be nice to be able just to click through a list of symbols and see the arrows on all of them.

Thank you

Just put these code to below of your AFL.

PlotShapes( IIf( Buy, shapeSquare, shapeNone ), colorGreen, 0, L, Offset = -15 );
PlotShapes( IIf( Buy, shapeSquare, shapeNone ), colorLime, 0, L, Offset = -25 );
PlotShapes( IIf( Buy, shapeUpArrow, shapeNone ), colorWhite, 0, L, Offset = -20 );

PlotShapes( IIf( Short, shapeSquare, shapeNone ), colorRed, 0, H, Offset = 15 );
PlotShapes( IIf( Short, shapeSquare, shapeNone ), colorOrange, 0, H, Offset = 25 );
PlotShapes( IIf( Short, shapeDownArrow, shapeNone ), colorWhite, 0, H, Offset = -20 );

PlotShapes( IIf( Cover AND !Buy, shapeStar, shapeNone ), colorRed, 0, L, Offset = -20 );
PlotShapes( IIf( Sell AND !Short, shapeStar, shapeNone ), colorGreen, 0, H, Offset = 20 );

PlotShapes( IIf( Cover AND Buy, shapeStar, shapeNone ), colorRed, 0, L, Offset = -40 );
PlotShapes( IIf( Sell AND Short, shapeStar, shapeNone ), colorGreen, 0, H, Offset = 40 );

Thank you for these variations of PlotShapes code. I am experimenting with them.

However, they do not solve the problem of having to add arrows to the charts one symbol at a time. That problem remains even with these.

How to solve without your afl code. First post your code and explain with screenshot your requirement.

These lines of code are working well. The problem is that the arrows only show on one symbol chart, not all the symbol charts in the Explore/Scan list. I must select each symbol and apply arrows to it. Is there a way to apply arrows to all charts at the same time?

Short =
	MACD() > 4
	AND MACD() > Signal();   
	
Cover =
	MACD() < -10;
	
	PlotShapes( IIf( Short, shapeDownArrow, shapeNone ), colorRed, 0, H, Offset = -20 );
	PlotShapes( IIf( Cover, shapeUpArrow, shapeNone ), colorGreen, 0, L, Offset = -20 );
	
	Short = ExRem ( Short, Cover);  
	Cover = ExRem ( Cover, Short );
			
		Filter = Short;  //EXPLORE HAS NO RESULTS WITHOUT THIS LINE	
		AddColumn (MACD(), "MACD"); //ADDS COLUMN TO EXPLORE REPORT
		SetSortColumns( -3 ); //SORT BY COLUMN 3 (-3 = ASCENDING)

This is the way I do it, there may be other ways as well:

  1. Apply your charting AFL to one chart
  2. Run the Exploration in an Analysis window
  3. Select "Sync chart on select" from the Analysis Settings dropdown list
  4. Right click the title tab of the Analysis window, and select "Floating" so you can move that window off to the side, allowing you to see the chart
  5. Use the arrow keys to navigate through the Exploration results. As you select each new symbol, the chart should update to show that symbol as well.

Thanks, Matt. I discovered a similar way to see both windows by using the Windows menu / tile vertical. Then I shrink the analysis to a narrow column on the left and stretch the chart window to fill the remaining screen.

And though I can then select each symbol, they will only show the arrows if I select them by right-clicking the symbol, then left clicking the top option, "Show Arrows For all Raw Trades".

It works well enough - 2 clicks to see each symbol with arrows, but checking the "Sync chart on select" didn't make any difference seeing arrows. That still requires the 2 clicks, which is not so bad once the windows are properly arranged.

Thanks again.

Did you apply the AFL that plots the arrows to the chart? If so, then that AFL should be drawing arrows every time a new symbol is selected in that chart.

No, I misunderstood that I need the arrow-plotting code in the chart formula, not just the explore formula. I'm working on that now. Since the arrow-drawing code refers to Buy, the chart code wants to know about that also. Does it need all the Buy and Sell code in the chart code?

UPDATE: It is now working. I just put the whole Buy/Sell code into the Chart code. Thanks again for your time.

You should be able to just drag and drop your entire AFL file onto the chart, or use the Apply button in the AmiBroker Formula Editor.