Plot shapes location problem


hello, I am new to amibroker and having some trouble plotting shapes with some code I found.

on my chart, the buy/sell arrows are plotting on the 0 line at the bottom of the chart.

how do I get them to be slightly above or below the price chart?

this is the code I am using for plotshapes.

PlotShapes(Buy*shapeUpArrow, colorGreen, 0, LongEntry); 
PlotShapes(Sell*shapeDownArrow, colorRed, 0, LongExit);


Welcome @barkl002,

I hope you have looked at the Help File to find the Plotshapes(...) reference page. That should tell you that you have an issue with your "LongEntry" and "LongExit" values.

Without seeing how they are generated/calculated, can't help much more than suggesting that you add the offset (-12 for Buyside, +12 for Sellside).

If you have not already read How do I learn AFL? and How do I debug my formula?, then that would be an Excellent place to start.

One additional tip.. Try making an Exploration, and adding columns for each variable that you are having trouble with. That way you can see what numbers the system is generating, and you can hopefully see where you have a logic issue.