amibroker questions

Discussion in 'Trading Software' started by Wach80, Jul 6, 2016.

  1. Wach80

    Wach80

    When you right click on a chart and go to edit formula , it has a code there , does this code express what happens in the chart? can you for example set your preffered strategy on the chart then edit formula and save the code and that would be your strategy?

    for ex look at this chart

    [​IMG]

    Does this code express what happens on the chart? does this include my trendline? or does it only include the whole chart situation? generally is it possible to do it like that? if you can get the code like this then you dont need to know any coding at all. Also whats the purpose of the blueline?
     
  2. Metamega

    Metamega

    Take the time and review manual and knowledge base. Lots of examples and material on its capabilities.

    AFL( Amibroker formula language) is used for pretty much for everything.

    When you right click the chart and open the editor it will show like you see whatever is in that file. For instance if you dragged a moving average indicator into the chart, that editor would now show the code for the moving average( would show the parameter options, the plot code, etc).

    You can add any code to that chart through the editor and it will work.

    You could enter a system and plot some buy/sell arrows at your rules or whatever other option you wanted.

    Using the analysis window is where you'll find the explore, backtest, optimize, walk forward features.

    This is where you can work the magic with your system and have reports for your logic.

    It's really way to complex to explain in a post. Really check out Howard bandy's Amibroker beginners guide. It's a free pdf of a book he wrote that will get the basics started. I'm on phone now and too hard to find a link. Should be easy to google.
     
  3. Best portfolio analysis software for the money. You can also run a fully functional demo for free.
     
  4. M.ST.

    M.ST.

    You don't need any Bandy books for getting the basics. Just read the AmiBroker users guide which is downloadable as PDF file on the homepage too (alternatively to the chm help within the AmiBroker program itself). Both PDF and internal help do have same content but if you want to print it then PDF might be of better use.

    In addition you may take a look at the knowledge base articles (KB) on their official homepage http://www.amibroker.com/kb/toc/

    More information there than in 3rd party voodoo books which just repeat what is available at official source.
     
  5. fxshrat

    fxshrat



    The trend line you have drawn there is not part of the code in your picture. It is an object from the tool bar being drawn by your hand. You may call that trend line study from code by applying the Study() function in your code.
    You may go to the knowledge base doing a search by entering 'study' into the search box. Then you would get kb articles such as these ones http://www.amibroker.com/kb/index.php?s=study

    Alternatively to manually drawing studies by your hand you may write a code drawing a (trend) line. For example by writing a function with start and end dates as function arguments. Or by writing a code for automatic trend lines based on some pattern. And so on.


    The vertical line is called "selector line". It just marks the bar you have selected by your mouse click. You may make it invisible by going to parameter settings. Click CTRL+R or right click on chart and choose parameters. Then go to Axes&Grid -> Vert. quote marker: Show/Hide Or you may hide by code, see flag chartHideQuoteMarker of SetChartOptions() function https://www.amibroker.com/guide/afl/setchartoptions.html
    If you want to change color and thickness http://www.amibroker.com/kb/2007/02/26/how-to-make-vertical-selection-line-thinner/

    You may add to your code whatever you like to add. It just has to make sense. ;-)

    If you edit a code that is already applied on you chart then click 'Apply' button in your editor but not 'Save' button. See http://amibrokerforum.proboards.com/thread/69/updating-parameters-applied-afls

    If your edited AFL is not applied anywhere yet then you may just click save.
     
    Last edited: Jul 8, 2016
  6. Wach80

    Wach80

    Yes but can i add it the way i asked? for ex. i want to code the price movement inside the trendline box and the volume inside the trendline box (trendline boxes are there to show you what i want to add , i dont want to include trendlines on my code) here:

    [​IMG]

    Can i somehow right click the chart and edit formula and it would show only these parts of the chart into code with all the parameters etc? so when i scan later on it will only scan price movements and volumes similar to those and it wont require any coding , is that possible? if i could somehow define buy and sell points too.
     
    Last edited: Jul 8, 2016
  7. fxshrat

    fxshrat

    As I've mentioned in my previous post you may add to your code whatever you like to add! After having edited a code already being applied to chart pane you simply click 'Apply' button and the chart pane will immidiately update too.

    If you want to code price movement within a date or date/time section then there are several ways to do that.

    Since you have started a new AFL specific thread here http://www.elitetrader.com/et/index...algorithms-and-questions.301055/#post-4302340 I guess it is a better idea to respond there to your more detailed example.