Automated BUY and SELL signal in Amobroker

#1
Is there any option in Amibroket to initiate automated buy and sell signal in a indicator just like in the image attached in this post.

In the below image RSI indicator is used where the software automatically shows a buy signal when the stock goes into oversold zone and begins to cool down which is a buy signal and in the same way for a sell signal.

And in the same way with the DMi indicator when the crossovers occur in the +veDMi and -veDMI a buy and sell signals are automatically generated by the software itself.


 

singhboy

Active Member
#2
write a buy condition in afl, for ex buy= RSI< 20 :
then write this at end of afl,
PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,Graph1);
 
#5
Dear Singhboy,
I am a newbee and trying my hand at Amibroker and I have pasted as follows;

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBl ue,0,Graph1);

but get an error as attached.

Pls correct me.

Thanks n best regards
 

Attachments

#6
Dear Singhboy,
I am a newbee and trying my hand at Amibroker and I have pasted as follows;

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBl ue,0,Graph1);

but get an error as attached.

Pls correct me.

Thanks n best regards
There is a "Space" in the word colorBlue .... correct that, it would work.
Its written as colorBl ue .... it should be colorBlue
 

cbosein

Active Member
#10
Hi,

Requesting help from Anyone in writing AFL for Swing High (Down arrow) & Low (Up arrow) for following conditions. Time frame is any (5min, hourly, daily etc).

1) Swing low -- occurs when last candle/bar closes in green & Lowest low of last two candles/bars will be Swing low (Up arrow).
2) Swing high -- occurs when last candle/bar in red & Highest high of last two candles/bars will be Swing high (Down arrow).
3) Uptrend -- forms when we have higher swing low and present level is above last swing high (Green ribbon).
4) Downtrend -- forms when we have lower swing high and present level is below last swing low (Red ribbon).
5) Corrective up move -- forms when in downtrend & present level is above last swing high without making higher swing low (Blue ribbon).
6) Corrective down move -- forms when in uptrend & present level is below last swing low without making lower swing high (Brown ribbon).

Thanks in advance,
Keerthi
 

Similar threads