Amibroker formula

#1
Kartik Sir, and Saji Sir,

I am new to Amibroker software . I hope following formula will useful for day trading with the help of amibroker. May I request you to write and post AFL for this formula
Which will help to all.
1] Buy / sell signal should be shown on OHLC graph
2] Condition for buy
a. Stoch %K and %D cross over above 80 and tends to below 80.
b. Zig indicator and Trendline in downward direction
c.Stoch cross over point below to previous crossover
3] 2] Condition for Sell
a. Stoch %K and %D cross over below 20 and tends to above 20.
b. Zig indicator and Trendline in upward direction
c.Stoch cross over point above to previous crossover

Thanks in aqdvance
 
#7
can some senior pls guide me any site which will shpw me how to built a formula for afl or help me formulate following formula
Buy when 8 ema cross over 34 ema with rsi above 50 and stockastic also above 50 value with macd value above 0
 
#8
Read AmiBroker User Guide. It has everything you want to know. But a programming background is required to write the rules in AmiBroker - else it can be tough. Here is the code you want :

rule1 = cross(ema(c,8),ema(c,34));
rule2 = rsi()>50;
rule3 = stochd()>50;
rule4 = macd()>0;
Buy = rule1 AND rule2 AND rule3 AND rule4;

I have just typed it here without checking syntax, etc. - so check for correctness yourself and take this as first step and modify as and how required.

If you are new to programming, you can use AFL Code Wizard of AmiBroker. It writes trading rules in AFL from English like sentences. You can find a video demonstration on their website to know how this is done.

I remember having seen a 3rd party plugin on AmiBroker's website which converts rules from English like sentences to actual code - just like AFL Code Wizard, but I forgot the name. Check AmiBroker's website for more details.

Regards,
ChartAnalyst

can some senior pls guide me any site which will shpw me how to built a formula for afl or help me formulate following formula
Buy when 8 ema cross over 34 ema with rsi above 50 and stockastic also above 50 value with macd value above 0