Teach me How to use Ami (AFL)

nac

Well-Known Member
#1
I just tried to use simple version of charts in amibroker... I couldn't able to get what I need. I downloaded user guide. Now that seems like greek or latin to me.

I would be happy if you teach how to do this, rather than you code it. So that, if I need to edit, I can edit them myself after I learned rather than disturbing you to edit XYZ...

So anyone here, help me get what i need in amibroker.

1. I need to plot things in white background.
2. I need to plot three simple moving average.
3. Need to plot BB
4. Need to plot volume in a separate pane.
5. Need to plot stochastic in a separate pane in a separate pane
6. Need to plot parabolic
7. Need to plot MACD in a separate pane
8. I need to plot Exponential moving average.
9. I need candlestick, (Green and Red candles) with shadows

*I am asking after trying to plot these things by drag and drop.
*Period is not changing in formula after I edit them while dropping.
*I don't get shadows on candle bars.
*I really don't know how to bring white background.
*I couldn't save volume or any other indicator plotted in another pane (should I save separately if I want them in an another pane)
*I don't get what I wanted, but still the formula I got was ended up in error. (I don't know how that happened). So I was creating the formula again and again...
*Nearly around 4 hours I tried and I get nothing I wanted...

Thank you.
 
Last edited:

colion

Active Member
#2
All of the indicators that you listed are built-in and available in the folders Bands, or Averages, or Inicators. The price chart is available in the Basic Chart folder.

To open a new pane with a specific indicator and/or the price chart just right click on the indicator or chart file and then click Insert Linked (or Insert if you want to place the formula in the Drag-Drop folder). You can then adjust the parameters of the indicators via the Parameter dialog (right click on the chart and choose Parameter. If yiou want to add a price chart or indicator to an existing pane just drag and drop it into the pane (see Users Guide).

The formulas for the price chart and indicators can be seen by right clicking on the pane and choosing Edit Formula. You should do this as a way to begin learning AFL.

That should get you started.
 

nac

Well-Known Member
#3
Almost I got all I wanted except background colour.

When I bring white as background colour, axis goes white as well, and I don't see anything in XY axis...

Can anyone help here?
 

nac

Well-Known Member
#5
Hi!

Thank you for guiding me...

I have got what I wanted white background, with red/green candle stick charts with shadows. I have plotted indicators I wanted.

Now the next phase,

How to write conditions (buy/sell signals)?

*I need to write conditions based on two or more indicators.
*Its better the signal be "BUY"/"SELL" rather than arrow(up/down). Maybe arrows along with "BUY"/"SELL"
*I have found some AFL, some of 'em are able to back test. If there are any conditions we need to write to backtest, I would like to write them as well.
 

nac

Well-Known Member
#8
I need two formulas, I tried but couldn't get it...

1.
Buy:
When +Di crosses -Di from down to up, and
Close is higher than previous high

Sell:
When -Di crosses +Di from down to up, and
Close is lower than previous low

2.
Buy:
When ADX of current bar is higher than or equal to 4 points of previous two bars.
(Little hic up here,
Eg:
-2 ADX is 23
-1 ADX is 22
0 ADX is 26.1

If I refer -2, the condition is not met. But it actually jumped 4 points from the previous bar. So it should be ADX is greater than 4 points of low of the last two bars ADX
), and
+Di is greater than -Di

Sell:
When ADX of current bar is higher than or equal to 4 points of previous two bars. (Same as buy condition here) and
-Di is greater than +Di
 

Similar threads