[amibroker] Need AFL with BackTest Code

 

Hi ...I want a AFL code for my moving average cross over system with Back-test facility(Intra-Day)
Here is the Logic...

BUY Condition :

Condition1 = Close > EMA10 (Candle 1)
Condition2 = next candle's close also > EMA10 (candle 2)

But I want Buy arrow in next candle(or u can say the 3rd candle's Open price)
But with one more condition here..Third candle also close in Green
If 3rd candle is Red than Avoid Buy and inplace of BUY signal I want Sell signal

Sell Condition :

Condition1 = Close < EMA10(Candle 1)
Condition2 = next candle's close also < EMA10 (candle 2)

But I want Sell arrow in next  candle(Candle 3) But
With one more condition here ...Third Candle also close in RED
If 3rd candle is Green than avoid Buy and inplace of SELL I want BUY signal

is it possible ??
 
Jai--Hind
Chirag
" You aren't remembered for doing what is expected of you "

__._,_.___

Posted by: Chirag <chirag_patel5141@yahoo.co.in>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon