Exploration, Scan and Backtesting help needed in Amibroker

abhinkoi

Active Member
#1
Hello Everyone,

I am trying to create an exploration to give automatic buy/ sell signals based on above conditions. I am trying to combine all 3 indicators to get a stronger signal. Can someone help me writing an AFL formula for the below mentioned conditions -

ADX(14)
Buy when +DI crosses above -DI
Sell when +DI crosses below -DI

AND/OR

Buy when RSI is below 30
Sell when RSI is above 70

AND/OR

Buy when MACD (12,26) crosses above signal (12,26,9)
Sell when MACD (12,26) crosses below signal (12,26,9)

I have tried using Powerscan add-in in Amibroker but its AND OR feature is not enabled.
Since I am new to AFL coding so seeking help from seniors. Please help.

Also please let me know if I am missing something. Also if its possible to use the same for SCAN and BACKTESTING.

Cheers
Abhinav
 

beginner_av

Well-Known Member
#3
pls understand the difference between trading and trending markets b4 designing any indicators...and also read about multicollinearity...u can design a system ONLY IF U UNDERSTAND how the COMPONENTS of the system work.
 

bvpraveen

Active Member
#4
pls understand the difference between trading and trending markets b4 designing any indicators...and also read about multicollinearity...u can design a system ONLY IF U UNDERSTAND how the COMPONENTS of the system work.
Hello Avi,

Went through the introduction of Multicollinearity at stockcharts.com. I wasn't aware of it previously. Learnt a new one from your reply.

Thanks Avi.

Praveen.
 

abhinkoi

Active Member
#5
Hello Beginner_Av,

Thanks for your reply. Surely I will go through the suggested site.
Now a days I am using Stock %D and %K with combination of RSI and MACD for INtraday. Stoch %K and %D is doing a great job for me on Hourly charts.

Do you think there is something else which I can combine with these indicators to get more better signals. Wud appreciate if you could help in this..

Cheers
Abhi
 

beginner_av

Well-Known Member
#6
Hey Praveen, missed your post.

this is in reply to abhinkoi's question
If stochastics is doing great work, stick to it....but be aware of the pitfalls of stoc...BTW stoc works well many times as it is a very popular indicator...but as mkt conditions change, so does stoc's effectiveness
 
Last edited:
#7
Hey Praveen, missed your post.

If stoc is doing great work, stick to it....but be aware of the pitfalls of stoc...BTW stoc works well many times as it is a very popular indicator...but as mkt conditions change, so does stoc's effectiveness
Hey Avi,

Couldn't even get a word what you are speaking. Which one you are referring here?

Praveen.
 

abhinkoi

Active Member
#9
Can I make an AFL formula for scanning with a combination of Stochastic %K and %D in one formula and CCI in another one? I have 2 different formula's (Stoch and CCI) which I am using for intraday trading. For Stoch I have made a formula to give me buy/sell but I dont know how to make a buy/sell formula of CCI and how to club both of them for scanning.

The thing which I am looking for is a combination of both. I mean to get a buy signal only when both the formula's says YES and vice versa.

Please help.

Cheers
Abhinav
 

Similar threads