Please help me to program the AFL in the following condition: - time frame 5 min, 15 min, 30 min
Today is the first day and 1st candle range should be less than 1%
If 1st candle's open price = low of same candle and next candle breaks the high of 1st candle , add some buffer for the high break
Go long when no 2 fullfills StopLoss Low of 1st candle with some buffer
If 1st candle's open=high then go short if next candle breaks the low of 1st candle, please add again some buffer
SL is the high of 1st candle with some buffer
we can make this even much better by adding sectors index scanning with above mentioned criteria. and add those sectors stocks first
@mk0902sh, welcome to the forum.
As you READ more you will see that the best way to get assistance here is to show your work/effort and ask specific questions about what you are having difficulty with. This forum is not meant to be a "free" coding service.
Here are a couple of "Must Read" posts to help out:
Search the forum
It is good idea to search the forum before asking same questions over and over. To search the forum just use magnifying glass icon in the upper right corner
Also it is good idea to use Google and add +site:amibroker.com to your search term to limit the output to content of amibroker.com web site. Doing so will include results from Knowledge Base and Users' Guide
Enter the AFL code properly
It is of utmost importance as improperly formatted code results in syntax err…
Some people come here and ask single-line SMS-style question (plus sometimes some random code) and expect "solution" without showing any effort made from their side.
Then all the good souls on this forum hopelessly try to figure out "what the heck original poster meant?"
So please follow the tips below so your question is more likely to get proper answer.
How to ask a good question
Follow the forum rules first:
How to use this site Please use the search field in this forum, the…
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.